[ python-Bugs-1057835 ] compiler.transformer, "from module import *"

SourceForge.net noreply at sourceforge.net
Mon Nov 1 14:03:14 CET 2004


Bugs item #1057835, was opened at 2004-10-31 21:20
Message generated for change (Comment added) made by felixwiemann
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1057835&group_id=5470

Category: Parser/Compiler
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Felix Wiemann (felixwiemann)
>Assigned to: Jeremy Hylton (jhylton)
Summary: compiler.transformer, "from module import *"

Initial Comment:
import compiler.transformer
compiler.transformer.parse('from module import
*').getChildNodes()[0].getChildNodes()[0].lineno

... is 1 in Python 2.3 but None in Python 2.4b1.

lineno is 1 in Python 2.4 too when passing 'from module
import something' instead of 'from module import *'.

----------------------------------------------------------------------

>Comment By: Felix Wiemann (felixwiemann)
Date: 2004-11-01 14:03

Message:
Logged In: YES 
user_id=1014490

I neither have time nor knowledge to fix it, but it seems
that the error was introduced in rev. 1.45 of
transformer.py.  The author of rev. 1.45 is jhylton,
applying patch #1015989. Assigned this bug to him.

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2004-11-01 12:41

Message:
Logged In: YES 
user_id=6656

I would guess that this is the result of the relatively recent 
changes to allow multiple line imports, but I don't really have time 
to play with this right now.  Do you have time to work on a fix?

If it does prove to be the multiple line import thing, you might 
want to pester Dima Dorfman -- I think that was his patch...

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1057835&group_id=5470


More information about the Python-bugs-list mailing list