[Python-3000] Bug(s) in 2to3
James Thiele
python3now at gmail.com
Mon Jun 25 18:36:52 CEST 2007
After checking out subversion repository of 2to3 yesterday I found two
cases where refactor.py failed.
It didn't like this line:
example.py:322: print h.iterkeys().next()
throwing:
AttributeError: 'DelayedStrNode' object has no attribute 'set_prefix'
The attached file "dict_ex.py" is a short example which also gets this error.
refactor.py also didn't like:
lineno, line = lineno+1, f.next()
also throwing:
AttributeError: 'DelayedStrNode' object has no attribute 'get_prefix'
The attached file "tup.py" is a short example which also gets this
error. The attached file
"no_tup.py" comments out the offending line and doesn't throw the exception.
The attached file "transcript" contains a shell session with full
tracebacks. The line numbers in the tracebacks may vary slightly from
the repository versions due to debug code used to isolate the problem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transcript
Type: application/octet-stream
Size: 2315 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-3000/attachments/20070625/3d2b45a6/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dict_ex.py
Type: application/octet-stream
Size: 33 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-3000/attachments/20070625/3d2b45a6/attachment-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tup.py
Type: application/octet-stream
Size: 226 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-3000/attachments/20070625/3d2b45a6/attachment-0002.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no_tup.py
Type: application/octet-stream
Size: 228 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-3000/attachments/20070625/3d2b45a6/attachment-0003.obj
More information about the Python-3000
mailing list