[issue12864] 2to3 creates illegal code on import a.b inside a package

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: duplicate -> wont fix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12864] 2to3 creates illegal code on import a.b inside a package

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker

[issue12864] 2to3 creates illegal code on import a.b inside a package

2012-03-29 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12864 ___ ___ Python-bugs-list

[issue12864] 2to3 creates illegal code on import a.b inside a package

2012-03-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: -import sub.subsub +from .sub import subsub as _dummy That’s partly incorrect, as you need to bind the name sub to match the original code. -- nosy: +eric.araujo ___ Python tracker

[issue12864] 2to3 creates illegal code on import a.b inside a package

2012-03-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: BTW I think if this is too difficult to implement 2to3 could just be documented as requiring you not to use implicit relative imports. -- ___ Python tracker rep...@bugs.python.org

[issue12864] 2to3 creates illegal code on import a.b inside a package

2011-09-02 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +benjamin.peterson stage: - needs patch versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12864

[issue12864] 2to3 creates illegal code on import a.b inside a package

2011-08-30 Thread simohe
New submission from simohe sim...@besonet.ch: When the current module is in a package and imports submodules, the following lines are converted to illegal code. -import sub.subsub +from . import sub.subsub -import sub, sub.subsub, sub2 +from . import sub, sub.subsub, sub2 A valid