This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author LambertDW
Recipients LambertDW, belopolsky, georg.brandl, peter.otten, pitrou, steven.daprano
Date 2009-01-24.20:12:06
SpamBayes Score 9.988128e-09
Marked as misclassified No
Message-id <1232827933.57.0.0105204285654.issue2527@psf.upfronthosting.co.za>
In-reply-to
Content
This note is simply a reminder that Antoine's 'from __main__ import *' 
solution fails in python3.  Also, resolution of this issue probably 
could incorporate Issue1397474.


>>> import timeit
>>> timeit.timeit('None','from __main__ import *')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.0/timeit.py", line 227, in timeit
    return Timer(stmt, setup, timer).timeit(number)
  File "/usr/local/lib/python3.0/timeit.py", line 135, in __init__
    code = compile(src, dummy_src_name, "exec")
  File "<timeit-src>", line 2
SyntaxError: import * only allowed at module level
History
Date User Action Args
2009-01-24 20:12:13LambertDWsetrecipients: + LambertDW, georg.brandl, peter.otten, belopolsky, pitrou, steven.daprano
2009-01-24 20:12:13LambertDWsetmessageid: <1232827933.57.0.0105204285654.issue2527@psf.upfronthosting.co.za>
2009-01-24 20:12:07LambertDWlinkissue2527 messages
2009-01-24 20:12:07LambertDWcreate