diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2019-02-09 17:35:16 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2019-02-09 17:35:16 +0100 |
commit | b32ef220df8e8f8b073be381312b94780a1ac376 (patch) | |
tree | 82d33902df3697413ed173f6ea987efb883f96d4 | |
parent | 0041db28a8c5c3975b8589bc2b7ceab43d221a6b (diff) | |
download | cython-b32ef220df8e8f8b073be381312b94780a1ac376.tar.gz |
Bring the doc string C constant back for special methods, except for the buffer methods.
-rw-r--r-- | Cython/Compiler/Nodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 56865c986..ce1143710 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -3443,7 +3443,7 @@ class DefNodeWrapper(FuncDefNode): if docstr.is_unicode: docstr = docstr.as_utf8_string() - if with_pymethdef: + if with_pymethdef or (entry.is_special and entry.name not in ('__getbuffer__', '__releasebuffer__')): code.putln('static char %s[] = %s;' % ( entry.doc_cname, docstr.as_c_string_literal())) |