• Michael W. Hudson's avatar
    backport gvanrossum's checkin of · bf05f2aa
    Michael W. Hudson yazdı
        revision 1.121 of test_descr.py
    
    "Fix" for SF bug #520644: __slots__ are not pickled.
    
    As promised in my response to the bug report, I'm not really fixing
    it; in fact, one could argule over what the proper fix should do.
    Instead, I'm adding a little magic that raises TypeError if you try to
    pickle an instance of a class that has __slots__ but doesn't define or
    override __getstate__.  This is done by adding a bozo __getstate__
    that always raises TypeError.
    
    Bugfix candidate (also the checkin to typeobject.c, of course).
    bf05f2aa
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...
PLAN.txt Loading commit data...
README Loading commit data...
acconfig.h 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...