- 02 May, 2002 2 kayıt (commit)
-
-
Fred Drake yazdı
-
Fred Drake yazdı
-
- 01 May, 2002 2 kayıt (commit)
-
-
Fred Drake yazdı
This closes SF bug #550409.
-
Fred Drake yazdı
-
- 30 Nis, 2002 7 kayıt (commit)
-
-
Fred Drake yazdı
-
Anthony Baxter yazdı
Typo: whcar_t should be wchar_t. Bugfix candidate? Don't know how this is handled in the docs. Original patch(es): python/dist/src/Doc/api/concrete.tex:1.15
-
Anthony Baxter yazdı
Repair widespread misuse of _PyString_Resize. Since it's clear people don't understand how this function works, also beefed up the docs. The most common usage error is of this form (often spread out across gotos): if (_PyString_Resize(&s, n) < 0) { Py_DECREF(s); s = NULL; goto outtahere; } The error is that if _PyString_Resize runs out of memory, it automatically decrefs the input string object s (which also deallocates it, since its refcount must be 1 upon entry), and sets s to NULL. So if the "if" branch ever triggers, it's an error to call Py_DECREF(s): s is already NULL! A correct way to write the above is the simpler (and intended) if (_PyString_Resize(&s, n) < 0) goto outtahere; Bugfix candidate. Original patch(es): python/dist/src/Python/bltinmodule.c:2.253
-
Anthony Baxter yazdı
Repair widespread misuse of _PyString_Resize. Since it's clear people don't understand how this function works, also beefed up the docs. The most common usage error is of this form (often spread out across gotos): if (_PyString_Resize(&s, n) < 0) { Py_DECREF(s); s = NULL; goto outtahere; } The error is that if _PyString_Resize runs out of memory, it automatically decrefs the input string object s (which also deallocates it, since its refcount must be 1 upon entry), and sets s to NULL. So if the "if" branch ever triggers, it's an error to call Py_DECREF(s): s is already NULL! A correct way to write the above is the simpler (and intended) if (_PyString_Resize(&s, n) < 0) goto outtahere; Bugfix candidate. Original patch(es): python/dist/src/Objects/fileobject.c:2.161 python/dist/src/Objects/stringobject.c:2.161 python/dist/src/Objects/unicodeobject.c:2.147
-
Anthony Baxter yazdı
(some tweaking for different _PyObject_GC_Malloc() call in 2.2. checked, still returns the same thing on failure...) _PyObject_GC_New: Could call PyObject_INIT with a NULL 1st argument. _PyObject_GC_NewVar: Could call PyObject_INIT_VAR likewise. Bugfix candidate. Original patch(es): python/dist/src/Modules/gcmodule.c:2.40
-
Anthony Baxter yazdı
Repair widespread misuse of _PyString_Resize. Since it's clear people don't understand how this function works, also beefed up the docs. The most common usage error is of this form (often spread out across gotos): if (_PyString_Resize(&s, n) < 0) { Py_DECREF(s); s = NULL; goto outtahere; } The error is that if _PyString_Resize runs out of memory, it automatically decrefs the input string object s (which also deallocates it, since its refcount must be 1 upon entry), and sets s to NULL. So if the "if" branch ever triggers, it's an error to call Py_DECREF(s): s is already NULL! A correct way to write the above is the simpler (and intended) if (_PyString_Resize(&s, n) < 0) goto outtahere; Bugfix candidate. Original patch(es): python/dist/src/Doc/api/concrete.tex:1.13
-
Fred Drake yazdı
(reported by François Pinard). Added some missing "_" characters in the same cluster of productions. Added missing floor division operator in m_expr production, and mention floor division in the relevant portion of the text.
-
- 26 Nis, 2002 3 kayıt (commit)
-
-
Fred Drake yazdı
getpgrp(), and setpgid(). This closes SF bug #547939.
-
Fred Drake yazdı
This closes SF bug #547953.
-
Anthony Baxter yazdı
Make sure that tp_free frees the int the same way as tp_dealloc would. This fixes the problem that Barry reported on python-dev: >>> 23000 .__class__ = bool crashes in the deallocator. This was because int inherited tp_free from object, which uses the default allocator. 2.2. Bugfix candidate. (trivial change in backport: "freefunc" -> "destructor") Original patch(es): python/dist/src/Objects/intobject.c:2.82
-
- 24 Nis, 2002 2 kayıt (commit)
-
-
Jack Jansen yazdı
Second part of fix for #493826: regenerated suite modules so errn exists but == 0 doesn't signal an error. This also picked up a few other changes, but they should be harmless.
-
cvs2svn yazdı
'release22-maint'.
-
- 23 Nis, 2002 3 kayıt (commit)
-
-
Fred Drake yazdı
variables. This closes SF bug #543148.
-
Anthony Baxter yazdı
divmod &c. Should probably be cleaned up properly so that the tests don't call that.
-
Anthony Baxter yazdı
don't fail if the audio device is busy, just skip. SF patch 545486
-
- 22 Nis, 2002 4 kayıt (commit)
-
-
Walter Dörwald yazdı
Apply patch diff.txt from SF feature request http://www.python.org/sf/444708 This adds the optional argument for str.strip to unicode.strip too and makes it possible to call str.strip with a unicode argument and unicode.strip with a str argument.
-
Walter Dörwald yazdı
Misc/NEWS 1.387->1.388 Lib/test/string_tests.py 1.10->1.11, 1.12->1.14, Lib/test/test_unicode.py 1.50->1.51, 1.53->1.54, 1.55->1.56 Lib/test/test_string.py 1.15->1.16 Lib/string.py 1.61->1.63 Lib/test/test_userstring.py 1.5->1.6, 1.11, 1.12 Objects/stringobject.c 2.156->2.159 Objects/unicodeobject.c 2.137->2.139 Doc/lib/libstdtypes.tec 1.87->1.88 Add a method zfill to str, unicode and UserString and change Lib/string.py accordingly (see SF patch http://www.python.org/sf/536241) This also adds Guido's fix to test_userstring.py and the subinstance checks in test_string.py and test_unicode.py.
-
Anthony Baxter yazdı
Fix bug 544473 - "Queue module can deadlock". Use try/finally to ensure all Queue locks remain stable. Includes test case. Bugfix candidate. (and branchpatch can now handle adding files :)
-
cvs2svn yazdı
'release22-maint'.
-
- 20 Nis, 2002 2 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
Jeremy Hylton yazdı
-
- 19 Nis, 2002 5 kayıt (commit)
-
-
Jeremy Hylton yazdı
-
Martin v. Löwis yazdı
-
Jeremy Hylton yazdı
Fix SF #544995 (zlib crash on second flush call) Bug fix by mhammond. Bug fix candidate for 2.2, not present in 2.1.
-
Fred Drake yazdı
version number, and explain what it is at the top of the chapter. This closes SF bug #225003.
-
Anthony Baxter yazdı
Fix bug 544473 - "Queue module can deadlock". Use try/finally to ensure all Queue locks remain stable. Includes test case. Bugfix candidate. Original patch(es): python/dist/src/Lib/Queue.py:1.15
-
- 18 Nis, 2002 10 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
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
-
Anthony Baxter yazdı
Add news about deprecated complex ops. Original patches were: python/dist/src/Misc/NEWS:1.387
-
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
-
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
-
Anthony Baxter yazdı
more informative.
-
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
-
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
-
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
-
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
-