• Guido van Rossum's avatar
    In save_newobj(), if an object's __getnewargs__ and __getstate__ are · 45486176
    Guido van Rossum yazdı
    the same function, don't save the state or write a BUILD opcode.  This
    is so that a type (e.g. datetime :-) can support protocol 2 using
    __getnewargs__ while also supporting protocol 0 and 1 using
    __getstate__.  (Without this, the state would be pickled twice with
    protocol 2, unless __getstate__ is defined to return None, which
    breaks protocol 0 and 1.)
    45486176
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...