diff options
author | Michael W. Hudson <mwh@python.net> | 2002-01-28 16:06:11 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2002-01-28 16:06:11 (GMT) |
commit | 7043010028ae15e3f23b2dc0516d39fd2a3e2359 (patch) | |
tree | 3b8e08a0d5a530474d1fbfdee6eab94a6d78e102 /Demo | |
parent | 3c62623861f95551f9600fa6c3ffc3f3c5a49b43 (diff) | |
download | cpython-7043010028ae15e3f23b2dc0516d39fd2a3e2359.zip cpython-7043010028ae15e3f23b2dc0516d39fd2a3e2359.tar.gz cpython-7043010028ae15e3f23b2dc0516d39fd2a3e2359.tar.bz2 |
It's merge time! (well, this is the last one for the moment)
Backport gvanrossum's checkin of revision 2.236:
A tentative fix for SF bug #503837 (Roeland Rengelink):
type.__module__ problems (again?)
This simply initializes the __module__ local in a class statement from
the __name__ global. I'm not 100% sure that this is the correct fix,
although it usually does the right thing. The problem is that if the
class statement executes in a custom namespace, the __name__ global
may be taken from __builtins__, in which case it would have the value
__builtin__, or it may not exist at all (if the custom namespace also
has a custom __builtins__), in which case the class statement will
fail.
Nevertheless, unless someone finds a better solution, this is a 2.2.1
bugfix too.
(apparently noone has :()
Diffstat (limited to 'Demo')
0 files changed, 0 insertions, 0 deletions