projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3895a5
)
Use error instead of NotImplementedError in ParseTreeTransforms.
author
W. Trevor King
<wking@drexel.edu>
Thu, 10 Mar 2011 13:07:51 +0000
(08:07 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Thu, 10 Mar 2011 13:07:51 +0000
(08:07 -0500)
Cython/Compiler/ParseTreeTransforms.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ParseTreeTransforms.py
b/Cython/Compiler/ParseTreeTransforms.py
index e121887750dc91d2ad981e54eb079177445b1517..5626c4dcf25880f906a311ad06bfebeeaf9d1b20 100644
(file)
--- a/
Cython/Compiler/ParseTreeTransforms.py
+++ b/
Cython/Compiler/ParseTreeTransforms.py
@@
-1238,7
+1238,9
@@
if VALUE is not None:
elif entry.visibility == 'readonly':
template = self.basic_property_ro
else:
- raise NotImplementedError('private python methods')
+ error(entry.pos,
+ "python methods may not have '%s' Python visibility" %
+ entry.visibility)
property = template.substitute({
u"ATTR": ExprNodes.AttributeNode(pos=entry.pos,
obj=ExprNodes.NameNode(pos=entry.pos, name="self"),