[Python-3000] Move to a "py3k" branch *DONE*

Neal Norwitz nnorwitz at gmail.com
Fri Aug 10 18:27:01 CEST 2007


On 8/10/07, Brett Cannon <brett at python.org> wrote:
> On 8/9/07, Neal Norwitz <nnorwitz at gmail.com> wrote:
> [SNIP]
> > See http://docs.python.org/dev/3.0/results/make-install.out for this failure:
> >
> > Compiling /tmp/python-test-3.0/local/lib/python3.0/test/test_pep263.py ...
> > Traceback (most recent call last):
> >   File "/tmp/python-test-3.0/local/lib/python3.0/compileall.py", line
> > 162, in <module>
> >     exit_status = int(not main())
> >   File "/tmp/python-test-3.0/local/lib/python3.0/compileall.py", line
> > 152, in main
> >     force, rx, quiet):
> >   File "/tmp/python-test-3.0/local/lib/python3.0/compileall.py", line
> > 89, in compile_dir
> >     if not compile_dir(fullname, maxlevels - 1, dfile, force, rx, quiet):
> >   File "/tmp/python-test-3.0/local/lib/python3.0/compileall.py", line
> > 65, in compile_dir
> >     ok = py_compile.compile(fullname, None, dfile, True)
> >   File "/tmp/python-test-3.0/local/lib/python3.0/py_compile.py", line
> > 144, in compile
> >     py_exc = PyCompileError(err.__class__,err.args,dfile or file)
> >   File "/tmp/python-test-3.0/local/lib/python3.0/py_compile.py", line
> > 49, in __init__
> >     tbtext = ''.join(traceback.format_exception_only(exc_type, exc_value))
> >   File "/tmp/python-test-3.0/local/lib/python3.0/traceback.py", line
> > 179, in format_exception_only
> >     filename = value.filename or "<string>"
> > AttributeError: 'tuple' object has no attribute 'filename'
> >
> > I'm guessing this came from the change in exception args handling?
>
> What change are you thinking of?  'args' was not changed, only the
> removal of 'message'.

That was probably the change I was thinking of.  Though wasn't there
also a change with unpacking args when catching an exception?

I didn't dig into this problem or the code, it was a guess so could be
totally off.  I was really more thinking out loud (hence the
question).  Hoping it might trigger some better ideas (or get people
looking into the problem).

n


More information about the Python-3000 mailing list