Skip to content
Snippets Groups Projects
  1. Nov 26, 2014
  2. Nov 17, 2014
  3. Nov 07, 2014
  4. Oct 26, 2014
  5. Oct 21, 2014
  6. Oct 17, 2014
  7. Oct 03, 2014
  8. Sep 26, 2014
  9. Sep 12, 2014
  10. Aug 26, 2014
  11. Jul 16, 2014
  12. Jul 06, 2014
  13. Jul 04, 2014
  14. May 29, 2014
  15. May 10, 2014
  16. Apr 13, 2014
  17. Feb 19, 2014
  18. Feb 18, 2014
    • Andreas Klöckner's avatar
      Pickling fix for primitives.If · 0a258931
      Andreas Klöckner authored
      0a258931
    • Andreas Klöckner's avatar
      Fix pickling · 936e1403
      Andreas Klöckner authored
      This fixes two issues.
      
      - First, __getinitargs__ does not actually get called for new-style
        classes. Whoops. Only __getstate__ and __setstate__ do. This
        introduces a version of these methods that relies on a new class
        attribute init_arg_names and the existing __getinitargs__ methods
        to provide pickling.
      
      - The default implementation of __getstate__ would pickle up the cached
        hash_value, which will likely be different in a new interpreter.
        Bad idea, fixed as above.
      936e1403
Loading