Files
cpython/Lib
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-05-30 19:15:16 +00:00
2002-05-29 19:40:36 +00:00
2002-03-17 21:49:20 +00:00
2001-12-22 15:23:50 +00:00
2002-02-11 17:56:27 +00:00
2002-04-16 01:38:40 +00:00
2002-06-01 00:57:55 +00:00
2002-05-23 15:15:30 +00:00
2002-06-01 01:29:16 +00:00
2002-06-01 16:07:16 +00:00
2002-06-01 16:07:16 +00:00
2002-06-01 16:07:16 +00:00
2002-04-16 01:38:40 +00:00
2002-05-23 23:58:17 +00:00
2002-04-16 01:38:40 +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-02-08 20:41:34 +00:00
2002-05-23 15:15:30 +00:00
2002-05-21 23:17:12 +00:00
2002-05-31 14:15:11 +00:00
2002-03-18 13:06:00 +00:00
2002-04-13 14:03:38 +00:00
2002-05-20 14:48:16 +00:00