1. 15 Ara, 1997 13 kayıt (commit)
  2. 12 Ara, 1997 5 kayıt (commit)
  3. 11 Ara, 1997 18 kayıt (commit)
  4. 10 Ara, 1997 4 kayıt (commit)
    • Guido van Rossum's avatar
      Jim Fulton writes: · d1f4984a
      Guido van Rossum yazdı
      The attached patch adds the following behavior to the handling
      of REDUCE codes:
      
      - A user-defined type may have a __reduce__ method that returns
        a string rather than a tuple, in which case the object is
        saved as a global object with a name given by the string returned
        by reduce.
      
        This was a feature added to cPickle a long time ago.
      
      
      - User-defined types can now support unpickling without
        executing a constructor.
      
        The second value returned from '__reduce__' can now be None,
        rather than an argument tuple.  On unpickling, if the
        second value returned from '__reduce__' during pickling was
        None, then rather than calling the first value returned from
        '__reduce__', directly, the '__basicnew__' method of the
        first value returned from '__reduce__' is called without
        arguments.
      
      I also got rid of a few of Chris' extra ()s, which he used
      to make python ifs look like C ifs.
      d1f4984a
    • Guido van Rossum's avatar
    • Guido van Rossum's avatar
    • Guido van Rossum's avatar
      At Barry's suggestion, plug the security leak by using an empty · d0753e20
      Guido van Rossum yazdı
      __builtins__ for all calls to eval().  This still allows someone to
      write string.atof("[1]*1000000") (which Jim Fulton worries about) but
      effectively disables access to system modules and functions.
      d0753e20