[ python-Bugs-966623 ] execfile, type, __module__, who knows ;)

SourceForge.net noreply at sourceforge.net
Fri Jun 4 11:46:17 EDT 2004


Bugs item #966623, was opened at 2004-06-05 01:46
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=966623&group_id=5470

Category: Python Interpreter Core
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Anthony Baxter (anthonybaxter)
Assigned to: Nobody/Anonymous (nobody)
Summary: execfile, type, __module__, who knows ;)

Initial Comment:
Apologies for the imprecise summary - I have no idea
where the problem is here. 

Thanks to JP Calderone for this little horror.

(distilled down from his example)

bonanza% cat foo.py 
print type('F', (object,), {})().__class__.__module__
bonanza% python2.3 -c "execfile('foo.py', {})"
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "foo.py", line 1, in ?
    print type('F', (object,), {})().__class__.__module__
SystemError: error return without exception set
bonanza% python2.4 -c "execfile('foo.py', {})"
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "foo.py", line 1, in ?
    print type('F', (object,), {})().__class__.__module__
SystemError: error return without exception set


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

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



More information about the Python-bugs-list mailing list