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 · 69b2d75f
      Barry Warsaw authored
      instead of marshal for object serialization.
      
      Fred, please proofread!
      69b2d75f
    • Barry Warsaw's avatar
      A change to sync with pickle.py: · 9b481ff3
      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.
      9b481ff3
    • Barry Warsaw's avatar
      Two changes: · bf4d959d
      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!
      bf4d959d
    • Barry Warsaw's avatar
      A massive rewrite affecting both the pickle and cPickle module · f595fd97
      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!
      f595fd97
    • Barry Warsaw's avatar
      Minor updates to add more pointers to the pickle documentation, and to · d44e7ad7
      Barry Warsaw authored
      clarify some of the interface.
      d44e7ad7