STINNER Victor [EMAIL PROTECTED] added the comment:
You would like to replace from mptypes import ... by from .mptypes
import Is it really a bug? Python is unable to guess if mptypes,
functions or settings are global modules or relative modules. Why
don't you patch your original code
Ondrej Certik [EMAIL PROTECTED] added the comment:
Hi Victor, thanks for the comments. I copied them to the issue 4292
where they belong and replied there.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4290
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Second metaclass problem fixed in r67178.
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4290
Ondrej Certik [EMAIL PROTECTED] added the comment:
I can confirm this is now fixed. Thanks very much!
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4290
___
___
Changes by Christian Heimes [EMAIL PROTECTED]:
--
assignee: - benjamin.peterson
components: +2to3 (2.x to 3.0 conversion tool)
nosy: +benjamin.peterson
priority: - normal
stage: - test needed
type: - behavior
versions: +Python 2.6
___
Python
New submission from Ondrej Certik [EMAIL PROTECTED]:
Download my branch of sympy from here:
http://github.com/certik/sympy/tree/division3
and run the 2to3 tool with python2.5:
$ python2.5 ../2to3/2to3 sympy/
[...]
Traceback (most recent call last):
File ../2to3/2to3, line 6, in module
Benjamin Peterson [EMAIL PROTECTED] added the comment:
I've fixed the first problem in r67177, but I found another one in
thirdparty/pyglet. Try running with -x metaclass.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4290
Ondrej Certik [EMAIL PROTECTED] added the comment:
Thanks, that was quick!
You can delete the thirdparty/pyglet, it's not imported by default. Then
the 2to3 passes. But I found another bug:
issue 4292
___
Python tracker [EMAIL PROTECTED]