]> granicus.if.org Git - python/commit
When instantiating a class with no arguments and where the class does
authorGuido van Rossum <guido@python.org>
Fri, 5 Dec 1997 19:42:42 +0000 (19:42 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 5 Dec 1997 19:42:42 +0000 (19:42 +0000)
commite467be6511a83525d8875e1e3d196443a88faee9
treee7aa2aecd5fc6389b1b92d3254ce0a2a12118567
parent346f7af8ff5c84892770386ac8869b07aa28c67b
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.
Lib/pickle.py