summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Double-fix of crash in Unicode freelist handling.Jeremy Hylton2003-09-162-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix leak in classobject.c. The leak surfaced on the error exit whenRaymond Hettinger2003-09-161-0/+1
| | | | | hashing a class that does not define __hash__ but does define a comparison.
* Test __all__ for unittest.pyRaymond Hettinger2003-09-161-1/+2
|
* Improve the leak fix so that PyTuple_New is only called when needed.Raymond Hettinger2003-09-161-9/+11
|
* Change checks of PyUnicode_Resize() return value for clarity.Jeremy Hylton2003-09-161-18/+17
| | | | | | | The unicode_resize() family only returns -1 or 0 so simply checking for != 0 is sufficient, but somewhat unclear. Many Python API functions return < 0 on error, reserving the right to return 0 or 1 on success. Change the call sites for consistency with these calls.
* Correct check of PyUnicode_Resize() return value.Jeremy Hylton2003-09-161-1/+2
|
* Reflow long lines and reformat.Jeremy Hylton2003-09-161-13/+13
|
* Fix leak discovered in test_new by Michael Hudson.Raymond Hettinger2003-09-151-17/+14
| | | | Will backport to 2.3.1
* SF bug #804113: Crypto terminology for crypto hash functionRaymond Hettinger2003-09-151-3/+4
| | | | | Noted that the SHA algorithm is really SHA-1. (Contributed by Ronald Rivest.)
* Remove possibly-misleading Expat versionAndrew M. Kuchling2003-09-151-2/+2
|
* Explicitly define public symbols via __all__: see discussion with RaymondSteve Purcell2003-09-151-0/+10
| | | | | Hettinger in comments for issue 804115 https://sourceforge.net/tracker/?func=detail&atid=105470&aid=804115&group_id=5470
* * Converted test to unittest format.Raymond Hettinger2003-09-131-85/+158
| | | | * Expanded coverage.
* The previous change works much faster (one lookup per key) whenRaymond Hettinger2003-09-131-0/+9
| | | | iteritems() is defined.
* SF bug #804115: bad argument handling(unittest.py)Raymond Hettinger2003-09-131-2/+2
|
* Simplify doctest of tee().Raymond Hettinger2003-09-131-6/+2
|
* Patch #793021: Implement htmllib.HTMLParser.reset. Fixes #711632.Martin v. Löwis2003-09-121-0/+3
| | | | Backported to 2.3.
* Patch #790000: Allow os.access to handle Unicode file name.Martin v. Löwis2003-09-122-0/+17
|
* SF #662923Raymond Hettinger2003-09-125-16/+56
| | | | | | 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.
* SF bug #804280: fromkeys is not listed in indexRaymond Hettinger2003-09-121-4/+5
|
* fix markup bugletsFred Drake2003-09-111-22/+13
|
* - added many links into the library referenceFred Drake2003-09-111-30/+45
| | | | | - removed use of the string module - fixed some broken markup
* - add several links into the library referenceFred Drake2003-09-111-36/+34
| | | | | - update a couple of URLs to point to more recent portions of python.org
* remove useless <br/> from the top navigation panelFred Drake2003-09-111-1/+1
|
* try to fix up the padding inside a notice environment so they fit in aFred Drake2003-09-111-2/+2
| | | | | little better, with similar spacing characteristics with the seealso environment
* SF patch #803449: modernize demo scriptsRaymond Hettinger2003-09-102-93/+89
| | | | (Contributed by George Yoshida.)
* - add version annotation for HIGHEST_PROTOCOLFred Drake2003-09-101-5/+5
| | | | - cleaned up some markup
* Oops. Really fix the indentation problem this time.Jeremy Hylton2003-09-101-13/+13
|
* Fix inconsistent mix of tabs and spaces that caused test to fail.Jeremy Hylton2003-09-101-5/+4
|
* select.select() now accepts a sequence (as defined by PySequence_Fast()) forBrett Cannon2003-09-103-23/+25
| | | | | | its first three arguments. Closes RFE #798046 .
* mention new module doc display feature of pydoc in libref and NEWSSkip Montanaro2003-09-102-0/+10
|
* SF bug #803679: Missing section number in csv module documentationRaymond Hettinger2003-09-101-2/+2
|
* SF bug #803842: Wrong description of regexp concatenationRaymond Hettinger2003-09-101-4/+5
|
* display link to module docs when it looks like the object module is a coreSkip Montanaro2003-09-101-1/+47
| | | | module
* SF bug #802302: Invalid documentation for dbhash.Raymond Hettinger2003-09-101-10/+9
| | | | The documentation severely departed for the actual implementation.
* SF patch #800899: Making "|" directive from REs a bit clearer.Raymond Hettinger2003-09-101-8/+7
|
* Python Bug 775061Kurt B. Kaiser2003-09-103-97/+2
| | | | | | 1. Remove "idle" script, it lives in Tools/scripts/ now. 2. Remove shebang from idle.py, should be called explicitly. 3. Remove obsolete test code from rpc.py; needs unit test.
* Fix typo.Raymond Hettinger2003-09-101-1/+1
|
* end-of-sentence punctuation comes *before* \footnote, not afterFred Drake2003-09-091-13/+13
|
* SF #801306: Bad RE in scanf exampleRaymond Hettinger2003-09-091-1/+1
|
* SF bug #560286: Add docs for 'basestring'Raymond Hettinger2003-09-091-0/+9
|
* Add an example to address a common question of how to split iterators.Raymond Hettinger2003-09-082-11/+50
|
* Set the warnings stacklevel to two.Raymond Hettinger2003-09-081-2/+2
|
* Fix spacing markup and other sundries.Raymond Hettinger2003-09-081-2/+2
|
* Fix spacing markup and other sundries.Raymond Hettinger2003-09-084-9/+9
|
* Generalize the last change to check for other markup spacing errors.Raymond Hettinger2003-09-081-4/+4
|
* Check for \NULL markup errors.Raymond Hettinger2003-09-081-0/+5
|
* Only release buffer after file has been closed. Fixes #800824.Martin v. Löwis2003-09-071-1/+1
| | | | Will backport to 2.2.
* Patch #801349: 64-bit fix for AMD64 from Gwenole Beauchesne.Just van Rossum2003-09-071-1/+1
| | | | | Classical problem with int vs. long mismatch in varargs. 2.3 backport candidate.
* SF bug 801631: file.truncate fault on windows.Tim Peters2003-09-073-74/+98
| | | | | | | | | | | | | | | | | 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.
* fix \NULL with following space and no {} (two instances)Fred Drake2003-09-071-2/+2
|