OK, it's a scripting language.
>>> def g():
... os.remove('tokeneizer.pyc')
... reload( tokeneizer )
... tokeneizer.tokenize('sample_decaf.d')
...
>>>
But that gets me to:
... line 110, in get_toks
UnboundLocalError: local variable 'line_ptr' referenced before
assignment
Here's a bit of the code, with line #s
...
68 global line_ptr
69 global char_ptr
...
75 line_ptr = 0
76 char_ptr = 0
...
109 def get_toks( text ):
110 while line_ptr < last_line:
...
So when is a global var global?
--
http://mail.python.org/mailman/listinfo/python-list