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.

Attachment: transcript
Description: Binary data

Attachment: dict_ex.py
Description: Binary data

Attachment: tup.py
Description: Binary data

Attachment: no_tup.py
Description: Binary data

_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to