Eric Huss's readonly variable patch:
authorWilliam Stein <wstein@gmail.com>
Thu, 30 Nov 2006 19:57:57 +0000 (11:57 -0800)
committerWilliam Stein <wstein@gmail.com>
Thu, 30 Nov 2006 19:57:57 +0000 (11:57 -0800)
commitf4961542b2e0502e0dac7e1a5065b6d4c943f9ea
tree7474bd979133787419f1caed35049263d978cfda
parent6f1dbe26bf77c7aa7142210e4af4cf6ef3aa7b00
Eric Huss's readonly variable patch:

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.
Cython/Compiler/Code.py