]> granicus.if.org Git - python/commit
When creating a class, set its __module__ attribute to the module
authorGuido van Rossum <guido@python.org>
Fri, 12 Sep 1997 20:04:46 +0000 (20:04 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 12 Sep 1997 20:04:46 +0000 (20:04 +0000)
commit7cc56eb524dd83e3ba9d76accec3b0fe4010a48a
treebd4ad6dc6d954bb1eb10640dee297422b810254e
parent626a8d034c7bdc6f716430c5d1535c09c6341fa3
When creating a class, set its __module__ attribute to the module
whose name is in the current globals' __name__ variable.  If __name__
is not set, ignore this.
Objects/classobject.c