Guido van Rossum
340cbe74b9
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.
2002-01-15 21:06:07 +00:00
..
2000-05-02 18:34:30 +00:00
2001-07-26 13:41:06 +00:00
2002-01-12 11:05:12 +00:00
2002-01-01 19:59:11 +00:00
2000-09-26 05:46:01 +00:00
2002-01-15 21:06:07 +00:00
2000-07-22 18:47:25 +00:00
2001-11-28 21:35:49 +00:00
2002-01-12 11:05:12 +00:00
2001-11-28 20:42:20 +00:00
2001-11-28 20:42:20 +00:00
2001-11-28 20:42:20 +00:00
2001-12-06 22:58:56 +00:00
2001-11-28 20:42:20 +00:00
2001-11-28 20:42:20 +00:00
2000-09-01 23:29:29 +00:00
2001-11-28 20:42:20 +00:00
2001-10-02 21:32:07 +00:00
2001-11-28 20:24:33 +00:00
2001-07-26 13:41:06 +00:00
2001-10-18 18:57:31 +00:00
2002-01-12 11:05:12 +00:00
2001-08-20 20:32:33 +00:00
2002-01-09 16:21:27 +00:00
2000-09-05 04:40:39 +00:00
2001-04-12 20:53:31 +00:00
2000-09-01 23:29:29 +00:00
2001-07-26 13:41:06 +00:00
2000-11-03 08:18:37 +00:00
2000-09-01 23:29:29 +00:00
2001-11-28 20:42:20 +00:00
2001-10-15 15:44:05 +00:00
2001-07-26 13:41:06 +00:00
2002-01-12 11:05:12 +00:00
2001-10-16 20:07:34 +00:00
2001-11-05 02:45:59 +00:00
2001-12-04 01:11:32 +00:00
2001-11-09 22:02:48 +00:00
2000-09-01 23:29:29 +00:00
2001-08-17 18:39:25 +00:00
2001-12-21 16:32:15 +00:00
2000-09-01 23:29:29 +00:00
2001-07-26 13:41:06 +00:00
2001-07-19 12:19:27 +00:00
2002-01-12 11:05:12 +00:00
2000-09-01 23:29:29 +00:00
2000-07-22 18:47:25 +00:00
2001-11-28 20:42:20 +00:00
2001-07-26 13:41:06 +00:00
2001-12-04 16:23:42 +00:00
2001-12-10 00:53:18 +00:00
2002-01-12 11:05:12 +00:00
2001-11-28 22:07:30 +00:00
2002-01-01 18:41:33 +00:00
2001-10-16 21:13:49 +00:00
2001-10-16 21:13:49 +00:00
2001-10-16 21:50:04 +00:00
2001-10-31 03:50:45 +00:00
2001-10-16 21:13:49 +00:00
2002-01-15 20:36:14 +00:00
2001-10-16 21:13:49 +00:00
2002-01-12 11:05:12 +00:00
2001-10-16 21:13:49 +00:00
2002-01-12 11:05:12 +00:00
2001-11-28 20:42:20 +00:00