[Python-bugs-list] [ python-Bugs-445474 ] warn about import * inside functions
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 01 Aug 2001 13:53:25 -0700
Bugs item #445474, was opened at 2001-07-28 06:54
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=445474&group_id=5470
Category: Parser/Compiler
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Guido van Rossum (gvanrossum)
>Assigned to: Jeremy Hylton (jhylton)
Summary: warn about import * inside functions
Initial Comment:
According to the reference manual, import * is now only
allowed at the module level. This is not enforced. We
should add a warning for this.
----------------------------------------------------------------------
>Comment By: Jeremy Hylton (jhylton)
Date: 2001-08-01 13:53
Message:
Logged In: YES
user_id=31392
Do you really want to get a warning about this? Last time
it came up, we discovered that you were the most common user
of this feature in Python. Fredrik also said he used it a
lot, not surprising since the most common idiom is:
def test():
from Tkinter import *
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=445474&group_id=5470