]> granicus.if.org Git - python/commit
_reduce():
authorGuido van Rossum <guido@python.org>
Sat, 24 Nov 2001 21:04:31 +0000 (21:04 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 24 Nov 2001 21:04:31 +0000 (21:04 +0000)
commit00fb0c954faeb582ab5a4b1776b774686509e3d3
treed722d66d90e61b3746fc5e55cd3a09f00463a8c1
parent64585f6afb33ea907a22a365b4fdbec155e3da55
_reduce():

  - Fix for SF bug #482752: __getstate__ & __setstate__ ignored (by Anon.)

    In fact, only __getstate__ isn't recognized.  This fixes that.

  - Separately, the test for base.__flags__ & _HEAPTYPE raised an
    AttributeError exception when a classic class was amongst the
    bases.  Fixed this with a hasattr() bandaid (classic classes never
    qualify as the "hard" base class anyway, which is what the code is
    trying to find).
Lib/copy_reg.py