• Guido van Rossum's avatar
    When instantiating a class with no arguments and where the class does · e467be65
    Guido van Rossum yazdı
    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.
    e467be65
pickle.py 19.9 KB