honor Options.docstrings for cdef members
authorLisandro Dalcin <dalcinl@gmail.com>
Mon, 15 Mar 2010 22:47:35 +0000 (19:47 -0300)
committerLisandro Dalcin <dalcinl@gmail.com>
Mon, 15 Mar 2010 22:47:35 +0000 (19:47 -0300)
Cython/Compiler/ParseTreeTransforms.py

index 1f1f475308084af5611f43d954fea78414d1aaf8..01ea5aaa2863511071160ab6e5442ccbc055adfe 100644 (file)
@@ -1067,7 +1067,8 @@ property NAME:
         # ---------------------------------------
         # XXX This should go to AutoDocTransforms
         # ---------------------------------------
-        if self.current_directives['embedsignature']:
+        if (Options.docstrings and 
+            self.current_directives['embedsignature']):
             attr_name = entry.name
             type_name = entry.type.declaration_code("", for_display=1)
             default_value = ''