1. 18 Mar, 2002 4 kayıt (commit)
  2. 17 Mar, 2002 1 kayıt (commit)
  3. 15 Mar, 2002 2 kayıt (commit)
  4. 14 Mar, 2002 1 kayıt (commit)
    • Guido van Rossum's avatar
      "Fix" for SF bug #520644: __slots__ are not pickled. · 0628dcfe
      Guido van Rossum yazdı
      As promised in my response to the bug report, I'm not really fixing
      it; in fact, one could argule over what the proper fix should do.
      Instead, I'm adding a little magic that raises TypeError if you try to
      pickle an instance of a class that has __slots__ but doesn't define or
      override __getstate__.  This is done by adding a bozo __getstate__
      that always raises TypeError.
      0628dcfe
  5. 12 Mar, 2002 2 kayıt (commit)
    • Guido van Rossum's avatar
      Fix for SF bug #529050 - ModuleType.__new__ crash. · cd637aae
      Guido van Rossum yazdı
      There were several places that assumed the md_dict field was always
      set, but it needn't be.  Fixed these to be more careful.
      
      I changed PyModule_GetDict() to initialize md_dict to a new dictionary
      if it's NULL.
      
      Bugfix candidate.
      cd637aae
    • Tim Peters's avatar
      Change Windows file.truncate() to (a) restore the original file position, · 8f01b680
      Tim Peters yazdı
      and (b) stop trying to prevent file growth.
      
      Beef up the file.truncate() docs.
      
      Change test_largefile.py to stop assuming that f.truncate() moves the
      file pointer to the truncation point, and to verify instead that it leaves
      the file position alone.  Remove the test for what happens when a
      specified size exceeds the original file size (it's ill-defined, according
      to the Single Unix Spec).
      8f01b680
  6. 11 Mar, 2002 1 kayıt (commit)
    • Tim Peters's avatar
      file_truncate(): provide full "large file" support on Windows, by · fb05db2c
      Tim Peters yazdı
      dropping MS's inadequate _chsize() function.  This was inspired by
      SF patch 498109 ("fileobject truncate support for win32"), which I
      rejected.
      
      libstdtypes.tex:  Someone who knows should update the availability
      blurb.  For example, if it's available on Linux, it would be good to
      say so.
      
      test_largefile:  Uncommented the file.truncate() tests, and reworked to
      do more.  The old comment about "permission errors" in the truncation
      tests under Windows was almost certainly due to that the file wasn't open
      for *write* access at this point, so of course MS wouldn't let you
      truncate it.  I'd be appalled if a Unixish system did.
      
      CAUTION:  Someone should run this test on Linux (etc) too.  The
      truncation part was commented out before.  Note that test_largefile isn't
      run by default.
      fb05db2c
  7. 10 Mar, 2002 1 kayıt (commit)
    • Guido van Rossum's avatar
      Bugfix candidate. · dfce3bf9
      Guido van Rossum yazdı
      Adapter from SF patch 528038; fixes SF bug 527816.
      
      The wrapper for __nonzero__ should be wrap_inquiry rather than
      wrap_unaryfunc, since the slot returns an int, not a PyObject *.
      dfce3bf9
  8. 09 Mar, 2002 2 kayıt (commit)
    • Martin v. Löwis's avatar
      c8bb9eba
    • Tim Peters's avatar
      SF bug 525705: [2.2] underflow raise OverflowException. · dc5a5087
      Tim Peters yazdı
      Another year in the quest to out-guess random C behavior.
      
      Added macros Py_ADJUST_ERANGE1(X) and Py_ADJUST_ERANGE2(X, Y).  The latter
      is useful for functions with complex results.  Two corrections to errno-
      after-libm-call are attempted:
      
      1. If the platform set errno to ERANGE due to underflow, clear errno.
         Some unknown subset of libm versions and link options do this.  It's
         allowed by C89, but I never figured anyone would do it.
      
      2. If the platform did not set errno but overflow occurred, force
         errno to ERANGE.  C89 required setting errno to ERANGE, but C99
         doesn't.  Some unknown subset of libm versions and link options do
         it the C99 way now.
      
      Bugfix candidate, but hold off until some Linux people actually try it,
      with and without -lieee.  I'll send a help plea to Python-Dev.
      dc5a5087
  9. 08 Mar, 2002 2 kayıt (commit)
  10. 07 Mar, 2002 1 kayıt (commit)
  11. 06 Mar, 2002 1 kayıt (commit)
    • Michael W. Hudson's avatar
      Apply (my) patch: · ce358e30
      Michael W. Hudson yazdı
      [ 526072 ] pickling os.stat results round II
      
      structseq's constructors can now take "invisible" fields in a dict.
      Gave the constructors better error messages.
      their __reduce__ method puts these fields in a dict.
      
      (this is all in aid of getting os.stat_result's to pickle portably)
      
      Also fixes
      
      [ 526039 ] devious code can crash structseqs
      
      Thought needed about how much of this counts as a bugfix.  Certainly
      #526039 needs to be fixed.
      ce358e30
  12. 05 Mar, 2002 1 kayıt (commit)
    • Michael W. Hudson's avatar
      A fix & test for · 7bb466a1
      Michael W. Hudson yazdı
      [ 496873 ] structseqs unpicklable
      
      by adding a __reduce__ method to structseqs.
      
      Will also commit this to the 2.2.1 branch momentarily.
      7bb466a1
  13. 02 Mar, 2002 3 kayıt (commit)
  14. 01 Mar, 2002 1 kayıt (commit)
    • Guido van Rossum's avatar
      SF patch 514641 (Naofumi Honda) - Negative ob_size of LongObjects · 2eb0b87d
      Guido van Rossum yazdı
      Due to the bizarre definition of _PyLong_Copy(), creating an instance
      of a subclass of long with a negative value could cause core dumps
      later on.  Unfortunately it looks like the behavior of _PyLong_Copy()
      is quite intentional, so the fix is more work than feels comfortable.
      
      This fix is almost, but not quite, the code that Naofumi Honda added;
      in addition, I added a test case.
      2eb0b87d
  15. 28 Şub, 2002 1 kayıt (commit)
  16. 26 Şub, 2002 1 kayıt (commit)
    • Andrew MacIntyre's avatar
      OS/2 EMX port changes (Objects part of patch #450267): · c487439a
      Andrew MacIntyre yazdı
        Objects/
          fileobject.c
          stringobject.c
          unicodeobject.c
      
      This commit doesn't include the cleanup patches for stringobject.c and
      unicodeobject.c which are shown separately in the patch manager.  Those
      patches will be regenerated and applied in a subsequent commit, so as
      to preserve a fallback position (this commit to those files).
      c487439a
  17. 18 Şub, 2002 1 kayıt (commit)
  18. 16 Şub, 2002 1 kayıt (commit)
  19. 08 Şub, 2002 1 kayıt (commit)
  20. 07 Şub, 2002 1 kayıt (commit)
    • Marc-André Lemburg's avatar
      Fix to the UTF-8 encoder: it failed on 0-length input strings. · bd3be8f0
      Marc-André Lemburg yazdı
      Fix for the UTF-8 decoder: it will now accept isolated surrogates
      (previously it raised an exception which causes round-trips to
      fail).
      
      Added new tests for UTF-8 round-trip safety (we rely on UTF-8 for
      marshalling Unicode objects, so we better make sure it works for
      all Unicode code points, including isolated surrogates).
      
      Bumped the PYC magic in a non-standard way -- please review. This
      was needed because the old PYC format used illegal UTF-8 sequences
      for isolated high surrogates which now raise an exception.
      bd3be8f0
  21. 06 Şub, 2002 3 kayıt (commit)
  22. 01 Şub, 2002 1 kayıt (commit)
    • Guido van Rossum's avatar
      Bugfix candidate. · e75bfde7
      Guido van Rossum yazdı
      Fix SF bug #511603: Error calling str on subclass of int
      
      Explicitly fill in tp_str with the same pointer as tp_repr.
      e75bfde7
  23. 29 Ock, 2002 1 kayıt (commit)
  24. 16 Ock, 2002 1 kayıt (commit)
  25. 12 Ock, 2002 1 kayıt (commit)
  26. 05 Ock, 2002 1 kayıt (commit)
  27. 01 Ock, 2002 1 kayıt (commit)
  28. 19 Ara, 2001 1 kayıt (commit)
  29. 17 Ara, 2001 1 kayıt (commit)