15 Oct
2003
15 Oct
'03
9:12 p.m.
Gilles Lenfant wrote:
Is there changes in this usual Python builtin ?
import types
# somewhere in a method...
if type(x) == types.UnicodeType:
Raises...
Error Type: UnboundLocalError Error Value: local variable 'type' referenced before assignment
What did I miss ?
It seems to work elsewhere. OFS/Image.py, for instance, and lots of other places. How does it work without the surrounding code? --jcc