diff options
author | Guido van Rossum <guido@python.org> | 1997-12-05 19:42:42 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-12-05 19:42:42 (GMT) |
commit | e467be6511a83525d8875e1e3d196443a88faee9 (patch) | |
tree | e7aa2aecd5fc6389b1b92d3254ce0a2a12118567 /Modules | |
parent | 346f7af8ff5c84892770386ac8869b07aa28c67b (diff) | |
download | cpython-e467be6511a83525d8875e1e3d196443a88faee9.zip cpython-e467be6511a83525d8875e1e3d196443a88faee9.tar.gz cpython-e467be6511a83525d8875e1e3d196443a88faee9.tar.bz2 |
When instantiating a class with no arguments and where the class does
not define __getinitargs__, bypass the __init__ constructor
completely. This uses the trick of instantiating an empty dummy class
and then changing inst.__class__ to the real class. This is done in
two places: once for the INST and once for the OBJ format code.
Also replaced the much outdated long doc string with a short summary
of the module; the information of that doc string is already
incorporated in the library reference manual.
Diffstat (limited to 'Modules')
0 files changed, 0 insertions, 0 deletions