• Guido van Rossum's avatar
    _reduce(): · 00fb0c95
    Guido van Rossum yazdı
      - 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).
    00fb0c95
copy_reg.py 1.82 KB