• Jim Fulton's avatar
    - Various changes to make gcc -Wall -pedantic happy, including · 0b716ef3
    Jim Fulton authored
      extra parens elimination of unused vars.
    
    - Added check to avoid pickling module __main__ for classes that are
      defined in other modules, in whichmodule
    
    - Changed to use Py_eval_input rather than eval_input.
    
    - Changed to use SIZEOF_LONG macro to avoid warnings on 32-bit machines.
    
    - Added option of supplying None to pickler, which cases no data to be
      written during pickling.  This is slightly useful, in conjunction
      with persistent_id attribute to find persistent sub-objects without
      writing a pickle.
    0b716ef3
cPickle.c 85 KB