summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* Double-fix of crash in Unicode freelist handling.Jeremy Hylton2003-09-161-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | If a length-1 Unicode string was in the freelist and it was uninitialized or pointed to a very large (magnitude) negative number, the check unicode_latin1[unicode->str[0]] == unicode could cause a segmentation violation, e.g. unicode->str[0] is 0xcbcbcbcb. Fix this in two ways: 1. Change guard befor unicode_latin1[] to test against 256U. If I understand correctly, the unsigned long used to store UCS4 on my box was getting converted to a signed long to compare with the signed constant 256. 2. Change _PyUnicode_New() to make sure the first element of str is always initialized to zero. There are several places in the code where the caller can exit with an error before initializing any of str, which would leave junk in str[0]. Also, silence a compiler warning on pointer vs. int arithmetic. Bug fix candidate.
* SF #662923Raymond Hettinger2003-09-121-0/+4
| | | | | | Add support for the iterator and mapping protocols. For Py2.3, this was done for shelve, dumbdbm and other mapping objects, but not for bsddb and dbhash which were inadvertently missed.
* select.select() now accepts a sequence (as defined by PySequence_Fast()) forBrett Cannon2003-09-101-0/+2
| | | | | | its first three arguments. Closes RFE #798046 .
* mention new module doc display feature of pydoc in libref and NEWSSkip Montanaro2003-09-101-0/+5
|
* SF bug 801631: file.truncate fault on windows.Tim Peters2003-09-071-0/+4
| | | | | | | | | | | | | | | | | file_truncate(): C doesn't define what fflush(fp) does if fp is open for update, and the preceding I/O operation on fp was input. On Windows, fflush() actually changes the current file position then. Because Windows doesn't support ftruncate() directly, this not only caused Python's file.truncate() to change the file position (contra our docs), it also caused the file not to change size. Repaired by getting the initial file position at the start, restoring it at the end, and tossing all the complicated micro-efficiency checks trying to avoid "provably unnecessary" seeks. file.truncate() can't be a frequent operation, and seeking to the current file position has got to be cheap anyway. Bugfix candidate.
* **kwds arg was missing from __init__ for Dict{Reader,Writer} classes.Skip Montanaro2003-09-061-0/+3
| | | | will backport.
* NEWS about email package 794466 patch.Barry Warsaw2003-09-031-1/+2
|
* Document the Pynche patch.Barry Warsaw2003-09-031-0/+3
|
* SF 798269: bug fix for doctest (sf bug id: 798254Raymond Hettinger2003-09-021-0/+1
| | | | (Contributed by Alexander Belopolsky.)
* SF patch #798534: Windows os.popen needlessly gets a reference to tuple ()Raymond Hettinger2003-09-011-0/+1
| | | | | | (Contributed by Andrew Gaul.) Fixes a minor leak.
* SF patch #798467: Update docstring of has_key for bool changesRaymond Hettinger2003-09-011-0/+1
| | | | (Contributed by George Yoshida.)
* SF bug #795506: Wrong handling of string format code for float values.Raymond Hettinger2003-08-271-0/+3
| | | | | | Adding missing support for '%F'. Will backport to 2.3.1.
* Added doubled word warnings.Raymond Hettinger2003-08-251-0/+2
|
* Describe the fix to the email package.Barry Warsaw2003-08-191-0/+3
|
* This started opening files in text mode by default in the 2.3 release,Tim Peters2003-08-181-0/+6
| | | | | | | which is a disaster on Windows. Restored the binary default of all previous releases. Also minor code cleanups. Bugfix candidate!
* Improvements to set.py:Raymond Hettinger2003-08-171-1/+4
| | | | | | | | | | | | | | | | | | | * Relaxed the argument restrictions for non-operator methods. They now allow any iterable instead of requiring a set. This makes the module a little easier to use and paves the way for an efficient C implementation which can take better advantage of iterable arguments while screening out immutables. * Deprecated Set.update() because it now duplicates Set.union_update() * Adapted the tests and docs to include the above changes. * Added more test coverage including testing identities and checking to make sure non-restartable generators work as arguments. Will backport to Py2.3.1 so that the interface remains consistent across versions. The deprecation of update() will be changed to a FutureWarning.
* Make sets.py compatible with Py2.2Raymond Hettinger2003-08-151-0/+2
|
* complex_new(): This could leak when the argument was neither string norTim Peters2003-08-151-0/+3
| | | | | | number. This accounts for the 2 refcount leaks per test_complex run Michael Hudson discovered (I figured only I would have the stomach to look for leaks in floating-point code <wink>).
* [Patch #739124] Add use_default_colors() to curses moduleAndrew M. Kuchling2003-08-132-0/+3
|
* mention pymemcompat.h in Misc/READMEMichael W. Hudson2003-08-111-0/+1
|
* SF bug #778964: bad seed in python 2.3 randomRaymond Hettinger2003-08-091-0/+4
| | | | | | | The default seed is time.time(). Multiplied by 256 before truncating so that fractional seconds are used. This way, two successive calls to random.seed() are much more likely to produce different sequences.
* SF bug #770485: cStringIO does not set closed attrRaymond Hettinger2003-08-081-0/+2
|
* Modified itertools.izip() to match the behavior of __builtin__.zip()Raymond Hettinger2003-08-081-0/+3
| | | | which can now take zero arguments.
* Removed deprecated functionsRaymond Hettinger2003-08-051-1/+4
|
* forgot to commit this - note about the signal module SIGRT(MIN,MAX)Anthony Baxter2003-08-051-0/+2
|
* Mention caching and better thread-safety for Lib/_strptime.pyBrett Cannon2003-08-051-0/+4
|
* As discussed on python-dev, changed builtin.zip() to handle zero argumentsRaymond Hettinger2003-08-021-0/+3
| | | | by returning an empty list instead of raising a TypeError.
* add skeletal "what's new" for 2.4a1 and mention a couple python-mode tweaks.Skip Montanaro2003-08-011-0/+42
|
* delete the f1 key binding. py-help-at-point is still available @ C-c C-h.Skip Montanaro2003-08-011-1/+0
|
* make pending-delete/delete-selection mode work with py-electric-colonSkip Montanaro2003-08-011-2/+4
|
* tweak to py-fill-paragraph - problem noted by John Lee and correctionSkip Montanaro2003-07-311-1/+1
| | | | submitted by Bernard Herzog. Closes patch 779830.
* Fix typo.Walter Dörwald2003-07-301-1/+1
|
* Get rid of empty sectionsBarry Warsaw2003-07-291-18/+0
|
* SF bug 778400: IDLE hangs when selecting "Edit with IDLE".Tim Peters2003-07-291-0/+5
| | | | | | | | The fix is confined to the Windows installer. Not a bugfix candidate: the need for the new -n switch added here was introduced by moving to the idlefork IDLE (so this change isn't needed or helpful before 2.3).
* Added section for 2.3 final; moved IDLE news into it that I inserted inTim Peters2003-07-291-10/+37
| | | | a wrong place over the weekend.
* Gave the main NEWS file its own IDLE section, and populated it with aTim Peters2003-07-271-3/+13
| | | | blurb about ZoneAlarm (etc) nags.
* Updated news for 2.3c2.Barry Warsaw2003-07-251-1/+25
|
* Update version numbers and dates for 2.3c2 -- we won't be able to do thisTim Peters2003-07-241-1/+1
| | | | during the day tomorrow, so doing it earlier than I'd like.
* Bugfix for #775892: added -mno-fused-madd to BASECFLAGS on MacOSX.Jack Jansen2003-07-231-0/+5
| | | | | | This makes test_coercion pass on Panther. Also added a note to NEWS that pythonw works again (it was broken in rc1).
* Change the zipimport implementation to accept files containingThomas Heller2003-07-221-0/+4
| | | | | | | | | arbitrary bytes before the actual zip compatible archive. Zipfiles containing comments at the end of the file are still not supported. Add a testcase to test_zipimport, and update NEWS. This closes sf #775637 and sf #669036.
* Windows fix: When PYTHONCASEOK is set, or for any other reason importsTim Peters2003-07-221-0/+3
| | | | | | | | | | are satisfied in a case-insensitive manner, the attempt to import (the non-existent) fcntl gets satisfied by FCNTL.py instead, and the tempfile module defines a Unix-specific _set_cloexec() function in that case. As a result, temp files can't be created then (blows up with an AttributeError trying to reference fcntl.fcntl). This just popped up in the spambayes project, where there is no apparent workaround (which is why I'm pushing this in now).
* Added note about the pyexpat memory leak fix.Fred Drake2003-07-211-0/+5
|
* Merge 23c1-branch back into the head. Barry will send email about theTim Peters2003-07-211-2/+36
| | | | | | New Plan (releases to be made off the head, ongoing random 2.4 stuff to be done on a short-lived branch, provided anyone is motivated enough to create one).
* Minor typoBarry Warsaw2003-07-201-2/+3
|
* Oh, well.Jeremy Hylton2003-07-181-2/+0
|
* Forgot the release date.Jeremy Hylton2003-07-181-0/+2
|
* The rest of the news.Jeremy Hylton2003-07-171-22/+87
|
* SF patch 764470Jeremy Hylton2003-07-171-0/+1
|
* Partial progress on NEWS.Jeremy Hylton2003-07-171-11/+55
|
* SF bug 770601.Jeremy Hylton2003-07-171-0/+1
|