Guido van Rossum
c3a787e090
Surprising fix for SF bug 563060: module can be used as base class.
...
Change the module constructor (module_init) to have the signature
__init__(name:str, doc=None); this prevents the call from type_new()
to succeed. While we're at it, prevent repeated calling of
module_init for the same module from leaking the dict, changing the
semantics so that __dict__ is only initialized if NULL.
Also adding a unittest, test_module.py.
This is an incompatibility with 2.2, if anybody was instantiating the
module class before, their argument list was probably empty; so this
can't be backported to 2.2.x.
2002-06-04 05:52:47 +00:00
..
2002-04-19 22:56:37 +00:00
2002-02-23 22:31:53 +00:00
2002-05-30 19:15:16 +00:00
2002-06-02 19:12:03 +00:00
2002-04-05 12:12:00 +00:00
2002-05-29 19:40:36 +00:00
2002-05-27 21:58:05 +00:00
2002-05-31 20:51:31 +00:00
2002-03-17 21:49:20 +00:00
2001-12-22 15:23:50 +00:00
2002-02-22 11:06:30 +00:00
2001-12-15 22:12:47 +00:00
2002-06-04 05:52:47 +00:00
2002-05-31 20:46:39 +00:00
2002-02-11 17:56:27 +00:00
2002-06-01 14:18:47 +00:00
2002-04-16 01:38:40 +00:00
2002-04-04 22:55:58 +00:00
2002-05-31 23:03:33 +00:00
2002-06-01 14:18:47 +00:00
2002-03-23 03:26:53 +00:00
2002-06-01 14:18:47 +00:00
2002-06-01 19:51:15 +00:00
2001-12-19 14:27:41 +00:00
2002-04-07 06:36:23 +00:00
2002-06-01 14:18:47 +00:00
2002-04-04 22:55:58 +00:00
2002-06-01 14:18:47 +00:00
2002-06-01 19:51:15 +00:00
2002-06-03 15:58:32 +00:00
2002-04-26 02:29:55 +00:00
2001-12-27 16:27:28 +00:00
2002-06-02 18:55:56 +00:00
2002-06-01 14:18:47 +00:00
2002-06-01 19:51:15 +00:00
2002-06-01 00:57:55 +00:00
2002-06-01 14:18:47 +00:00
2002-06-01 19:51:15 +00:00
2002-06-01 14:25:41 +00:00
2002-06-02 18:55:56 +00:00
2002-05-23 15:15:30 +00:00
2002-06-01 14:18:47 +00:00
2002-06-03 15:58:32 +00:00
2002-06-03 10:41:45 +00:00
2002-04-04 22:55:58 +00:00
2002-06-01 01:29:16 +00:00
2002-06-01 14:18:47 +00:00
2002-05-29 16:18:42 +00:00
2002-06-03 15:58:32 +00:00
2002-05-29 16:18:42 +00:00
2002-05-14 15:50:11 +00:00
2002-06-01 14:18:47 +00:00
2002-06-01 14:18:47 +00:00
2002-06-01 14:18:47 +00:00
2002-06-01 19:51:15 +00:00
2002-06-02 18:55:56 +00:00
2002-06-01 19:51:15 +00:00
2002-03-25 21:40:36 +00:00
2002-06-01 19:51:15 +00:00
2002-06-01 14:18:47 +00:00
2002-06-02 18:55:56 +00:00
2002-06-03 15:58:32 +00:00
2002-06-04 02:17:04 +00:00
2002-06-01 14:18:47 +00:00
2002-06-01 14:18:47 +00:00
2002-05-29 16:18:42 +00:00
2002-04-04 22:55:58 +00:00
2002-06-01 16:07:16 +00:00
2002-06-03 15:58:32 +00:00
2002-06-01 19:51:15 +00:00
2002-06-01 19:51:15 +00:00
2002-06-01 14:18:47 +00:00
2002-06-01 14:18:47 +00:00
2002-06-01 14:18:47 +00:00
2002-06-03 15:58:32 +00:00
2002-06-01 16:07:16 +00:00
2002-06-01 19:51:15 +00:00
2002-06-01 16:07:16 +00:00
2002-04-16 01:38:40 +00:00
2002-06-02 18:55:56 +00:00
2002-06-02 18:55:56 +00:00
2002-06-01 19:51:15 +00:00
2002-06-03 15:58:32 +00:00
2002-06-01 19:51:15 +00:00
2002-04-19 00:11:32 +00:00
2002-03-23 05:55:18 +00:00
2002-05-23 23:58:17 +00:00
2002-04-16 01:38:40 +00:00
2002-06-01 14:18:47 +00:00
2002-06-01 14:18:47 +00:00
2002-06-01 14:18:47 +00:00
2002-06-03 15:58:32 +00:00
2002-05-31 14:14:06 +00:00
2002-06-02 00:40:05 +00:00
2002-06-02 00:40:05 +00:00
2002-06-02 00:40:05 +00:00
2002-06-01 14:18:47 +00:00
2002-06-01 14:18:47 +00:00
2002-05-14 02:13:30 +00:00
2002-06-03 15:58:32 +00:00
2002-02-17 04:25:24 +00:00
2002-04-15 00:36:48 +00:00
2002-06-02 00:40:05 +00:00
2002-06-02 00:40:05 +00:00
2002-06-01 19:51:15 +00:00
2002-06-03 15:58:32 +00:00
2002-06-03 15:58:32 +00:00
2002-06-02 18:55:56 +00:00
2002-05-31 14:13:04 +00:00
2002-06-02 03:04:52 +00:00
2002-06-01 14:18:47 +00:00
2002-02-08 20:41:34 +00:00
2002-04-07 06:36:23 +00:00
2002-06-01 14:18:47 +00:00
2002-05-23 15:15:30 +00:00
2002-06-02 03:04:52 +00:00
2002-05-21 23:17:12 +00:00
2002-05-31 14:15:11 +00:00
2002-06-03 16:53:00 +00:00
2002-06-03 15:58:32 +00:00
2002-03-18 13:06:00 +00:00
2002-06-01 14:18:47 +00:00
2002-04-13 14:03:38 +00:00
2002-05-20 14:48:16 +00:00
2002-06-01 19:51:15 +00:00
2002-06-03 15:58:32 +00:00
2002-06-01 14:18:47 +00:00
2002-06-02 03:04:52 +00:00
2002-04-11 20:57:30 +00:00
2002-03-31 13:59:18 +00:00
2002-06-01 14:18:47 +00:00
2002-06-02 03:04:52 +00:00
2002-06-03 15:58:32 +00:00