Fix #610 - Compiler crash on --no-docstrings.
authorRobert Bradshaw <robertwb@math.washington.edu>
Sun, 5 Dec 2010 07:48:18 +0000 (23:48 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Sun, 5 Dec 2010 07:48:18 +0000 (23:48 -0800)
Cython/Compiler/ModuleNode.py

index 0af1a23802df0908d0dc941d87603a054b6352f0..44a24994a8ce73eca3370cc0ba0f41a64b9b478e 100644 (file)
@@ -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' % (