Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Double-fix of crash in Unicode freelist handling. | Jeremy Hylton | 2003-09-16 | 2 | -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 when | Raymond Hettinger | 2003-09-16 | 1 | -0/+1 |
| | | | | | hashing a class that does not define __hash__ but does define a comparison. | ||||
* | Test __all__ for unittest.py | Raymond Hettinger | 2003-09-16 | 1 | -1/+2 |
| | |||||
* | Improve the leak fix so that PyTuple_New is only called when needed. | Raymond Hettinger | 2003-09-16 | 1 | -9/+11 |
| | |||||
* | Change checks of PyUnicode_Resize() return value for clarity. | Jeremy Hylton | 2003-09-16 | 1 | -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 Hylton | 2003-09-16 | 1 | -1/+2 |
| | |||||
* | Reflow long lines and reformat. | Jeremy Hylton | 2003-09-16 | 1 | -13/+13 |
| | |||||
* | Fix leak discovered in test_new by Michael Hudson. | Raymond Hettinger | 2003-09-15 | 1 | -17/+14 |
| | | | | Will backport to 2.3.1 | ||||
* | SF bug #804113: Crypto terminology for crypto hash function | Raymond Hettinger | 2003-09-15 | 1 | -3/+4 |
| | | | | | Noted that the SHA algorithm is really SHA-1. (Contributed by Ronald Rivest.) | ||||
* | Remove possibly-misleading Expat version | Andrew M. Kuchling | 2003-09-15 | 1 | -2/+2 |
| | |||||
* | Explicitly define public symbols via __all__: see discussion with Raymond | Steve Purcell | 2003-09-15 | 1 | -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 Hettinger | 2003-09-13 | 1 | -85/+158 |
| | | | | * Expanded coverage. | ||||
* | The previous change works much faster (one lookup per key) when | Raymond Hettinger | 2003-09-13 | 1 | -0/+9 |
| | | | | iteritems() is defined. | ||||
* | SF bug #804115: bad argument handling(unittest.py) | Raymond Hettinger | 2003-09-13 | 1 | -2/+2 |
| | |||||
* | Simplify doctest of tee(). | Raymond Hettinger | 2003-09-13 | 1 | -6/+2 |
| | |||||
* | Patch #793021: Implement htmllib.HTMLParser.reset. Fixes #711632. | Martin v. Löwis | 2003-09-12 | 1 | -0/+3 |
| | | | | Backported to 2.3. | ||||
* | Patch #790000: Allow os.access to handle Unicode file name. | Martin v. Löwis | 2003-09-12 | 2 | -0/+17 |
| | |||||
* | SF #662923 | Raymond Hettinger | 2003-09-12 | 5 | -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 index | Raymond Hettinger | 2003-09-12 | 1 | -4/+5 |
| | |||||
* | fix markup buglets | Fred Drake | 2003-09-11 | 1 | -22/+13 |
| | |||||
* | - added many links into the library reference | Fred Drake | 2003-09-11 | 1 | -30/+45 |
| | | | | | - removed use of the string module - fixed some broken markup | ||||
* | - add several links into the library reference | Fred Drake | 2003-09-11 | 1 | -36/+34 |
| | | | | | - update a couple of URLs to point to more recent portions of python.org | ||||
* | remove useless <br/> from the top navigation panel | Fred Drake | 2003-09-11 | 1 | -1/+1 |
| | |||||
* | try to fix up the padding inside a notice environment so they fit in a | Fred Drake | 2003-09-11 | 1 | -2/+2 |
| | | | | | little better, with similar spacing characteristics with the seealso environment | ||||
* | SF patch #803449: modernize demo scripts | Raymond Hettinger | 2003-09-10 | 2 | -93/+89 |
| | | | | (Contributed by George Yoshida.) | ||||
* | - add version annotation for HIGHEST_PROTOCOL | Fred Drake | 2003-09-10 | 1 | -5/+5 |
| | | | | - cleaned up some markup | ||||
* | Oops. Really fix the indentation problem this time. | Jeremy Hylton | 2003-09-10 | 1 | -13/+13 |
| | |||||
* | Fix inconsistent mix of tabs and spaces that caused test to fail. | Jeremy Hylton | 2003-09-10 | 1 | -5/+4 |
| | |||||
* | select.select() now accepts a sequence (as defined by PySequence_Fast()) for | Brett Cannon | 2003-09-10 | 3 | -23/+25 |
| | | | | | | its first three arguments. Closes RFE #798046 . | ||||
* | mention new module doc display feature of pydoc in libref and NEWS | Skip Montanaro | 2003-09-10 | 2 | -0/+10 |
| | |||||
* | SF bug #803679: Missing section number in csv module documentation | Raymond Hettinger | 2003-09-10 | 1 | -2/+2 |
| | |||||
* | SF bug #803842: Wrong description of regexp concatenation | Raymond Hettinger | 2003-09-10 | 1 | -4/+5 |
| | |||||
* | display link to module docs when it looks like the object module is a core | Skip Montanaro | 2003-09-10 | 1 | -1/+47 |
| | | | | module | ||||
* | SF bug #802302: Invalid documentation for dbhash. | Raymond Hettinger | 2003-09-10 | 1 | -10/+9 |
| | | | | The documentation severely departed for the actual implementation. | ||||
* | SF patch #800899: Making "|" directive from REs a bit clearer. | Raymond Hettinger | 2003-09-10 | 1 | -8/+7 |
| | |||||
* | Python Bug 775061 | Kurt B. Kaiser | 2003-09-10 | 3 | -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 Hettinger | 2003-09-10 | 1 | -1/+1 |
| | |||||
* | end-of-sentence punctuation comes *before* \footnote, not after | Fred Drake | 2003-09-09 | 1 | -13/+13 |
| | |||||
* | SF #801306: Bad RE in scanf example | Raymond Hettinger | 2003-09-09 | 1 | -1/+1 |
| | |||||
* | SF bug #560286: Add docs for 'basestring' | Raymond Hettinger | 2003-09-09 | 1 | -0/+9 |
| | |||||
* | Add an example to address a common question of how to split iterators. | Raymond Hettinger | 2003-09-08 | 2 | -11/+50 |
| | |||||
* | Set the warnings stacklevel to two. | Raymond Hettinger | 2003-09-08 | 1 | -2/+2 |
| | |||||
* | Fix spacing markup and other sundries. | Raymond Hettinger | 2003-09-08 | 1 | -2/+2 |
| | |||||
* | Fix spacing markup and other sundries. | Raymond Hettinger | 2003-09-08 | 4 | -9/+9 |
| | |||||
* | Generalize the last change to check for other markup spacing errors. | Raymond Hettinger | 2003-09-08 | 1 | -4/+4 |
| | |||||
* | Check for \NULL markup errors. | Raymond Hettinger | 2003-09-08 | 1 | -0/+5 |
| | |||||
* | Only release buffer after file has been closed. Fixes #800824. | Martin v. Löwis | 2003-09-07 | 1 | -1/+1 |
| | | | | Will backport to 2.2. | ||||
* | Patch #801349: 64-bit fix for AMD64 from Gwenole Beauchesne. | Just van Rossum | 2003-09-07 | 1 | -1/+1 |
| | | | | | Classical problem with int vs. long mismatch in varargs. 2.3 backport candidate. | ||||
* | SF bug 801631: file.truncate fault on windows. | Tim Peters | 2003-09-07 | 3 | -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 Drake | 2003-09-07 | 1 | -2/+2 |
| |