summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-06-04 05:58:34 (GMT)
committerGuido van Rossum <guido@python.org>2002-06-04 05:58:34 (GMT)
commit2e4e02620bc118c57270519c7d5f3e76996b3841 (patch)
treee359f0926879c699fcbb5ca01b726b5a359c7cf2 /PCbuild
parentc3a787e090dce76149ae86d70d4fecea3c285a40 (diff)
downloadcpython-2e4e02620bc118c57270519c7d5f3e76996b3841.zip
cpython-2e4e02620bc118c57270519c7d5f3e76996b3841.tar.gz
cpython-2e4e02620bc118c57270519c7d5f3e76996b3841.tar.bz2
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.
Diffstat (limited to 'PCbuild')
0 files changed, 0 insertions, 0 deletions