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.
transcript
Description: Binary data
dict_ex.py
Description: Binary data
tup.py
Description: Binary data
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