[issue13692] 2to3 mangles from . import frobnitz

2012-01-01 Thread Henrik Holmboe

New submission from Henrik Holmboe :

It seems that 2to3 mangles::

 from . import frobnitz

into::

 from ... import frobnitz

This was noticed in the port of ipython to py3k. See 
https://github.com/ipython/ipython/issues/1197

--
components: 2to3 (2.x to 3.x conversion tool)
messages: 150430
nosy: holmbie
priority: normal
severity: normal
status: open
title: 2to3 mangles from . import frobnitz

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13692] 2to3 mangles from . import frobnitz

2012-01-01 Thread Thomas Kluyver

Thomas Kluyver  added the comment:

A couple of things to note:

- This was with the Python 3.1 implementation of 2to3 - the problem doesn't 
appear with the Python 3.2 version.
- The import statement in question was inside a method definition. I wonder if 
the extra two dots correspond to the class and method scopes.

--
nosy: +takluyver

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13692] 2to3 mangles from . import frobnitz

2012-01-06 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

If this is fixed in 3.2, can this be closed?

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13692] 2to3 mangles from . import frobnitz

2012-01-07 Thread Éric Araujo

Éric Araujo  added the comment:

Thanks for the report, but 3.1 does not get bug fixes any more.  Maybe Benjamin 
would like to add a regression test for this, so I’m leaving the decision to 
close this report to him.

--
nosy: +benjamin.peterson, eric.araujo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13692] 2to3 mangles from . import frobnitz

2012-01-07 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com