projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
228088d
)
honor Options.docstrings for cdef members
author
Lisandro Dalcin
<dalcinl@gmail.com>
Mon, 15 Mar 2010 22:47:35 +0000
(19:47 -0300)
committer
Lisandro Dalcin
<dalcinl@gmail.com>
Mon, 15 Mar 2010 22:47:35 +0000
(19:47 -0300)
Cython/Compiler/ParseTreeTransforms.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ParseTreeTransforms.py
b/Cython/Compiler/ParseTreeTransforms.py
index 1f1f475308084af5611f43d954fea78414d1aaf8..01ea5aaa2863511071160ab6e5442ccbc055adfe 100644
(file)
--- a/
Cython/Compiler/ParseTreeTransforms.py
+++ b/
Cython/Compiler/ParseTreeTransforms.py
@@
-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 = ''