[Pyrex] Minor error-reporting bug
Eric Huss
e-huss at netmeridian.com
Thu Nov 30 19:46:59 UTC 2006
There's a minor bug, if you try to cdef a readonly variable at the module
scope, the compiler raises an UnboundLocalError exception. The attached
patch seems to clear up the problem and gets the compiler to report the
correct error.
-Eric
-------------- next part --------------
--- Compiler/Code.py.bak Thu Nov 30 11:42:27 2006
+++ Compiler/Code.py Thu Nov 30 11:42:41 2006
@@ -162,6 +162,8 @@
storage_class = "static"
else:
storage_class = ""
+ else:
+ storage_class = ""
if storage_class:
self.put("%s " % storage_class)
#if visibility == 'extern' or visibility == 'public' and not definition:
More information about the Pyrex
mailing list