From bf336c620c60296656aa01d1363c434b08412f76 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 10 Mar 2011 08:07:51 -0500 Subject: [PATCH] Use error instead of NotImplementedError in ParseTreeTransforms. --- Cython/Compiler/ParseTreeTransforms.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index e1218877..5626c4dc 100644 --- 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"), -- 2.26.2