1. 19 Nis, 2002 2 kayıt (commit)
  2. 18 Nis, 2002 26 kayıt (commit)
    • Martin v. Löwis's avatar
    • Anthony Baxter's avatar
      backport gvanrossum's patch: · ea89d8f2
      Anthony Baxter yazdı
      Deprecate % as well.  The message for deprecation of //, % and divmod
      is the same in all three cases (mostly because // calls divmod :-).
      
      Original patches were:
      python/dist/src/Objects/complexobject.c:2.59
      ea89d8f2
    • Anthony Baxter's avatar
      backport gvanrossum's patch: · ee571fa0
      Anthony Baxter yazdı
      Add news about deprecated complex ops.
      
      Original patches were:
      python/dist/src/Misc/NEWS:1.387
      ee571fa0
    • Anthony Baxter's avatar
      backport gvanrossum's patch: · c82143eb
      Anthony Baxter yazdı
      SF bug #543387.
      
      Complex numbers implement divmod() and //, neither of which makes one
      lick of sense.  Unfortunately this is documented, so I'm adding a
      deprecation warning now, so we can delete this silliness, oh, around
      2005 or so.
      
      Bugfix candidate (At least for 2.2.2, I think.)
      
      Original patches were:
      python/dist/src/Objects/complexobject.c:2.58
      c82143eb
    • Anthony Baxter's avatar
      backport fdrake's patch: · 93e81e7c
      Anthony Baxter yazdı
      Document the optional argument to the .strip(), .rstrip(), .strip() string
      methods.
      Part of SF feature #444708.
      
      Original patches were:
      python/dist/src/Doc/lib/libstdtypes.tex:1.87
      93e81e7c
    • Anthony Baxter's avatar
      News for new strip method argument. Made the news message a bit · c11ee1ef
      Anthony Baxter yazdı
      more informative.
      c11ee1ef
    • Anthony Baxter's avatar
      backport gvanrossum's patch: · f908d0a8
      Anthony Baxter yazdı
      Partially implement SF feature request 444708.
      
      Add optional arg to string methods strip(), lstrip(), rstrip().
      The optional arg specifies characters to delete.
      
      Also for UserString.
      
      Still to do:
      
      - Misc/NEWS
      - LaTeX docs (I did the docstrings though)
      - Unicode methods, and Unicode support in the string methods.
      
      Original patches were:
      python/dist/src/Lib/test/string_tests.py:1.12
      f908d0a8
    • Anthony Baxter's avatar
      backport gvanrossum's patch: · 22115b7e
      Anthony Baxter yazdı
      Partially implement SF feature request 444708.
      
      Add optional arg to string methods strip(), lstrip(), rstrip().
      The optional arg specifies characters to delete.
      
      Also for UserString.
      
      Still to do:
      
      - Misc/NEWS
      - LaTeX docs (I did the docstrings though)
      - Unicode methods, and Unicode support in the string methods.
      
      Original patches were:
      python/dist/src/Lib/UserString.py:1.11
      22115b7e
    • Anthony Baxter's avatar
      backport gvanrossum's patch: · 0bc13db8
      Anthony Baxter yazdı
      Partially implement SF feature request 444708.
      
      Add optional arg to string methods strip(), lstrip(), rstrip().
      The optional arg specifies characters to delete.
      
      Also for UserString.
      
      Still to do:
      
      - Misc/NEWS
      - LaTeX docs (I did the docstrings though)
      - Unicode methods, and Unicode support in the string methods.
      
      
      
      
      Original patches were:
      python/dist/src/Objects/stringobject.c:2.156
      0bc13db8
    • Anthony Baxter's avatar
      backport gvanrossum's patch: · a3597faa
      Anthony Baxter yazdı
      SF bug #543318 (Frank J. Tobin).
      
      In DatagramRequestHandler.setup(), the wfile initialization should be
      StringIO.StringIO(), not StringIO.StringIO(slf.packet).
      
      Bugfix candidate (all the way back to Python 1.5.2 :-).
      
      
      Original patches were:
      python/dist/src/Lib/SocketServer.py:1.31
      a3597faa
    • Anthony Baxter's avatar
      backport gvanrossum's patch: · 4cedb9fb
      Anthony Baxter yazdı
      SF bug #541883 (Vincent Fiack).
      
      A stupid bug in object_set_class(): didn't check for value==NULL
      before checking its type.
      
      Bugfix candidate.
      
      
      Original patches were:
      python/dist/src/Objects/typeobject.c:2.142
      4cedb9fb
    • Anthony Baxter's avatar
      backport gvanrossum's patch: · 3de8a962
      Anthony Baxter yazdı
      SF bug #541883 (Vincent Fiack).
      
      A stupid bug in object_set_class(): didn't check for value==NULL
      before checking its type.
      
      Bugfix candidate.
      
      
      Original patches were:
      python/dist/src/Lib/test/test_descr.py:1.129
      3de8a962
    • Anthony Baxter's avatar
      backport gvanrossum's patch: · 1b2f63d2
      Anthony Baxter yazdı
      Provisional fix for writefile() [SF bug # 541730].
      
      The problem was that an exception can occur in the text.get() call or
      in the write() call, when the text buffer contains non-ASCII
      characters.  This causes the previous contents of the file to be lost.
      
      The provisional fix is to call str(self.text.get(...)) *before*
      opening the file, so that if the exception occurs, we never open the
      file.
      
      Two orthogonal better solutions have to wait for policy decisions:
      
      1. We could try to encode the data as Latin-1 or as UTF-8; but that
         would require IDLE to grow a notion of file encoding which requires
         more thought.
      
      2. We could make backups before overwriting a file.  This requires
         more thought because it needs to be fast and cross-platform and
         configurable.
      
      
      Original patches were:
      python/dist/src/Tools/idle/IOBinding.py:1.6
      1b2f63d2
    • Anthony Baxter's avatar
      backport nnorwitz's patch: · 0e654222
      Anthony Baxter yazdı
      BDFL agreed with Tim: rehabilitate randint().
      0e654222
    • Anthony Baxter's avatar
      backport fdrake's patch: · a208c251
      Anthony Baxter yazdı
      BDFL agreed with Tim: rehabilitate randint().
      a208c251
    • Anthony Baxter's avatar
      backport tim_one's patch: · 8387a353
      Anthony Baxter yazdı
      resetwarnings():  change the docstring to reflect what the code
      actually does.  Note that the description in the Library Reference
      manual is already accurate.
      
      Bugfix candidate.
      8387a353
    • Anthony Baxter's avatar
      backport bwarsaw's patch: · 12ef609a
      Anthony Baxter yazdı
      test_mktime(): Removed.  This wasn't really testing anything useful
      (or platform independent).  Closes SF bug #460357.
      
      Bug fix candidate.
      12ef609a
    • Guido van Rossum's avatar
      Darn. Of course the warning that Tim killed on the trunk must also be · b412734c
      Guido van Rossum yazdı
      killed in the branch.
      b412734c
    • Anthony Baxter's avatar
      backport gvanrossum's patch: · 0684d40b
      Anthony Baxter yazdı
      SF bug 544647.
      
      PyNumber_InPlaceMultiply insisted on calling sq_inplace_repeat if it
      existed, even if nb_inplace_multiply also existed and the arguments
      weren't right for sq_inplace_repeat.  Change this to only use
      sq_inplace_repeat if nb_inplace_multiply isn't defined.
      
      Bugfix candidate.
      0684d40b
    • Anthony Baxter's avatar
      backport gvanrossum's patch: · f762677b
      Anthony Baxter yazdı
      SF bug 544647.
      
      PyNumber_InPlaceMultiply insisted on calling sq_inplace_repeat if it
      existed, even if nb_inplace_multiply also existed and the arguments
      weren't right for sq_inplace_repeat.  Change this to only use
      sq_inplace_repeat if nb_inplace_multiply isn't defined.
      
      Bugfix candidate.
      f762677b
    • Anthony Baxter's avatar
      backport akuchling's patch: · 76108086
      Anthony Baxter yazdı
      Use 2.1's .hexdigest() method
      76108086
    • Anthony Baxter's avatar
      corrected backport. 'patch' made me sad, it got it horribly wrong · 3492eb2e
      Anthony Baxter yazdı
      (no idea why, or how)
      
      backport theller's patch
      
      Set the warn_dir option to 0 before running the install command.
      This suppresses bogus warnings about modules installed into a directory
      not in sys.path.
      
      Bugfix candidate.
      3492eb2e
    • Anthony Baxter's avatar
      backport tim_one's patch: · a2e92fcb
      Anthony Baxter yazdı
      SF bug 543840: complex(string) accepts strings with \0
      complex_subtype_from_string():  this stopped parsing at the first 0
      byte, as if that were the end of the input string.
      a2e92fcb
    • Anthony Baxter's avatar
      backport gvanrossum's patch · 5662ca0d
      Anthony Baxter yazdı
      Fix from SF bug #541980 (Jacques A. Vidrine).
      
      When os.stat() for a file raises OSError, turn it into IOError per
      documentation.
      5662ca0d
    • Guido van Rossum's avatar
      Backport rev 2.132 (note: some earlier bugfix candidates still TBD). · 00413c56
      Guido van Rossum yazdı
      SF bug 542984.
      
      Change type_get_doc (the get function for __doc__) to look in tp_dict
      more often, and if it finds a descriptor in tp_dict, to call it (with
      a NULL instance).  This means you can add a __doc__ descriptor to a
      new-style class that returns instance docs when called on an instance,
      and class docs when called on a class -- or the same docs in either
      case, but lazily computed.
      
      I'll also check this into the 2.2 maintenance branch.
      00413c56
    • Guido van Rossum's avatar
      Backport rev 2.143 (note: some earlier bugfix candidates still TBD). · 95c168cf
      Guido van Rossum yazdı
      SF bug 542984.
      
      Change type_get_doc (the get function for __doc__) to look in tp_dict
      more often, and if it finds a descriptor in tp_dict, to call it (with
      a NULL instance).  This means you can add a __doc__ descriptor to a
      new-style class that returns instance docs when called on an instance,
      and class docs when called on a class -- or the same docs in either
      case, but lazily computed.
      
      I'll also check this into the 2.2 maintenance branch.
      95c168cf
  3. 17 Nis, 2002 6 kayıt (commit)
  4. 16 Nis, 2002 1 kayıt (commit)
  5. 15 Nis, 2002 2 kayıt (commit)
  6. 13 Nis, 2002 1 kayıt (commit)
  7. 10 Nis, 2002 2 kayıt (commit)