From: Robert Bradshaw Date: Sun, 5 Dec 2010 07:48:18 +0000 (-0800) Subject: Fix #610 - Compiler crash on --no-docstrings. X-Git-Tag: 0.14.alpha0~11 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=7637fcfc7e574bd82609ad0efc44429505a42d63;p=cython.git Fix #610 - Compiler crash on --no-docstrings. --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 0af1a238..44a24994 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -2075,7 +2075,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): # unless we let PyType_Ready create the slot wrappers we have # a significant performance hit. (See trac #561.) for func in entry.type.scope.pyfunc_entries: - if func.is_special and func.wrapperbase_cname: + if func.is_special and Options.docstrings and func.wrapperbase_cname: code.putln("{"); code.putln( 'PyObject *wrapper = __Pyx_GetAttrString((PyObject *)&%s, "%s"); %s' % (