From 7637fcfc7e574bd82609ad0efc44429505a42d63 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sat, 4 Dec 2010 23:48:18 -0800 Subject: [PATCH] Fix #610 - Compiler crash on --no-docstrings. --- Cython/Compiler/ModuleNode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' % ( -- 2.26.2