[Python-bugs-list] [ python-Bugs-442501 ] class.__module__ in 2.2
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 18 Jul 2001 11:21:37 -0700
Bugs item #442501, was opened at 2001-07-18 11:04
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=442501&group_id=5470
Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Walter Dörwald (doerwalter)
>Assigned to: Guido van Rossum (gvanrossum)
Summary: class.__module__ in 2.2
Initial Comment:
The following little test script for Python 2.2
----
class foo:
pass
class bar(object):
pass
print foo.__module__
print bar.__module__
----
prints
__main__
__builtin__
IMHO it should print __main__ twice.
----------------------------------------------------------------------
Comment By: Guido van Rossum (gvanrossum)
Date: 2001-07-18 11:21
Message:
Logged In: YES
user_id=6380
Yes, you're right. I need to figure out a way to set the
__module__ property properly.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=442501&group_id=5470