1. 21 Nov, 2001 1 commit
  2. 20 Nov, 2001 2 commits
  3. 19 Nov, 2001 10 commits
  4. 18 Nov, 2001 7 commits
  5. 17 Nov, 2001 6 commits
  6. 16 Nov, 2001 9 commits
  7. 15 Nov, 2001 5 commits
    • Barry Warsaw's avatar
      A few minor updates to make it clear(er) that pickle should be used · 50a3a57a
      Barry Warsaw authored
      instead of marshal for object serialization.
      
      Fred, please proofread!
      50a3a57a
    • Barry Warsaw's avatar
      A change to sync with pickle.py: · 6d2347d1
      Barry Warsaw authored
      find_class(): We no longer mask all exceptions[1] by transforming them
      into SystemError.  The latter is definitely not the right thing to do,
      so we let any exceptions that occur in the PyObject_GetAttr() call to
      simply propagate up if they occur.
      
      [1] Note that pickle only masked ImportError, KeyError, and
      AttributeError, but cPickle masked all exceptions.
      6d2347d1
    • Barry Warsaw's avatar
      Two changes: · 105008c9
      Barry Warsaw authored
      load_inst(): Implement the security hook that cPickle already had.
      When unpickling callables which are not classes, we look to see if the
      object has an attribute __safe_for_unpickling__.  If this exists and
      has a true value, then we can call it to create the unpickled object.
      Otherwise we raise an UnpicklingError.
      
      find_class(): We no longer mask ImportError, KeyError, and
      AttributeError by transforming them into SystemError.  The latter is
      definitely not the right thing to do, so we let the former three
      exceptions simply propagate up if they occur, i.e. we remove the
      try/except!
      105008c9
    • Barry Warsaw's avatar
      A massive rewrite affecting both the pickle and cPickle module · 269eb619
      Barry Warsaw authored
      documentation.  This addresses previously undocumented parts of the
      public interfaces, the differences between pickle and cPickle,
      security concerns, and on and on.
      
      Fred please proofread!
      269eb619
    • Barry Warsaw's avatar
      Minor updates to add more pointers to the pickle documentation, and to · 5b8530a7
      Barry Warsaw authored
      clarify some of the interface.
      5b8530a7