summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Patch #1262036: Make tarfile name absolute. Fixes #1257255.Martin v. Löwis2005-08-241-20/+7
| | | | Will backport to 2.4.
* add note about "markupbase" not being intended for direct useFred Drake2005-08-231-1/+7
| | | | (closes SF bug #736659, patch #901369)
* Revert previous code elimination, 'filename' is needed.Kurt B. Kaiser2005-08-231-2/+7
|
* 1. Mac line endings were incorrect when pasting code from some browsersKurt B. Kaiser2005-08-232-7/+6
| | | | | | | when using X11 and the Fink distribution. Python Bug 1263656. 2. Eliminate duplicated code in ScriptBinding.run_module_event() Modified Files: NEWS.txt ScriptBinding.py
* bug [ 1266296 ] Mistakes in decimal.Context.subtract documentationGeorg Brandl2005-08-221-1/+1
|
* Bug #1266283: lexists() is not exported from os.pathGeorg Brandl2005-08-224-11/+11
|
* [ sf.net patch # 1121611 ]Gregory P. Smith2005-08-218-13/+438
| | | | | | | | | A new hashlib module to replace the md5 and sha modules. It adds support for additional secure hashes such as SHA-256 and SHA-512. The hashlib module uses OpenSSL for fast platform optimized implementations of algorithms when available. The old md5 and sha modules still exist as wrappers around hashlib to preserve backwards compatibility.
* Fix BZ2File.(x)readlines() for files without a newline.Georg Brandl2005-08-211-1/+17
|
* SF bug #1242657: list(obj) can swallow KeyboardInterruptRaymond Hettinger2005-08-211-0/+9
| | | | | | Fix over-aggressive PyErr_Clear(). The same code fragment appears in various guises in list.extend(), map(), filter(), zip(), and internally in PySequence_Tuple().
* Implement random.sample() using sets instead of dicts.Raymond Hettinger2005-08-191-9/+13
|
* Numerous fix-ups to C API and docs. Added tests for C API.Raymond Hettinger2005-08-161-1/+6
|
* Port from the Python 2.4 branch, patches for SF bug # 900092,Barry Warsaw2005-08-151-0/+1
| | | | hotshot.stats.load.
* Teach the sets module to correctly compute s-=s and s^=s as the empty set.Raymond Hettinger2005-08-132-0/+17
|
* * Fix SF #1257731. Make __contains__(), remove(), and discard() only doRaymond Hettinger2005-08-121-0/+13
| | | | | | | a frozenset conversion when the initial search attempt fails with a TypeError and the key is some type of set. Add a testcase. * Eliminate a duplicate if-stmt.
* Change the %s format specifier for str objects so that it returns aNeil Schemenauer2005-08-121-0/+4
| | | | | unicode instance if the argument is not an instance of basestring and calling __str__ on the argument returns a unicode instance.
* * Add short-circuit code for in-place operations with self (such asRaymond Hettinger2005-08-111-0/+12
| | | | | | | | | | | | | | | | | | | | | s|=s, s&=s, s-=s, or s^=s). Add related tests. * Improve names for several variables and functions. * Provide alternate table access functions (next, contains, add, and discard) that work with an entry argument instead of just a key. This improves set-vs-set operations because we already have a hash value for each key and can avoid unnecessary calls to PyObject_Hash(). Provides a 5% to 20% speed-up for quick hashing elements like strings and integers. Provides much more substantial improvements for slow hashing elements like tuples or objects defining a custom __hash__() function. * Have difference operations resize() when 1/5 of the elements are dummies. Formerly, it was 1/6. The new ratio triggers less frequently and only in cases that it can resize quicker and with greater benefit. The right answer is probably either 1/4, 1/5, or 1/6. Picked the middle value for an even trade-off between resize time and the space/time costs of dummy entries.
* Patch #827386: Support absolute source paths in msvccompiler.py.Martin v. Löwis2005-08-071-0/+2
| | | | Backported to 2.4.
* Whitespace normalization (ran reindent.py over the whole tree).Tim Peters2005-08-071-10/+10
|
* bug [ 1252706 ] poplib list() docstring fix (and docs too)Georg Brandl2005-08-051-1/+1
|
* Disable a few other tests, that can't work if Python is compiled withoutWalter Dörwald2005-08-034-18/+30
| | | | Unicode support.
* patch [ 1105730 ] Faster commonprefix in macpath, ntpath, etc.Georg Brandl2005-08-034-41/+32
|
* Bring cgi.escape docstring slightly more in line with the library refSkip Montanaro2005-08-021-1/+3
| | | | manual. Closes #1243553.
* PEP 342 implementation. Per Guido's comments, the generator throw()Phillip J. Eby2005-08-025-17/+285
| | | | | method still needs to support string exceptions, and allow None for the third argument. Documentation updates are needed, too.
* * Improve code for the empty frozenset singleton:Raymond Hettinger2005-08-011-0/+20
| | | | | | | | | | | - Handle both frozenset() and frozenset([]). - Do not use singleton for frozenset subclasses. - Finalize the singleton. - Add test cases. * Factor-out set_update_internal() from set_update(). Simplifies the code for several internal callers. * Factor constant expressions out of loop in set_merge_internal(). * Minor comment touch-ups.
* add support for svn: and svn+ssh: URL schemes to urlparseFred Drake2005-07-292-1/+7
|
* Disable encoding/decoding test, if unicode is disabled.Walter Dörwald2005-07-281-19/+20
|
* Fix a problem in Tkinter introduced by SF patch #869468 (checked in asGuido van Rossum2005-07-261-6/+0
| | | | | 1.179): delete bogus __hasattr__ and __delattr__ methods on class Tk that were breaking Tkdnd.
* That was one too much.Georg Brandl2005-07-221-1/+1
|
* Fix all wrong instances of "it's".Georg Brandl2005-07-2211-16/+16
|
* [ 1243081 ] repair typosGeorg Brandl2005-07-223-3/+3
|
* Make attributes and local variables in the StreamReader str objects insteadWalter Dörwald2005-07-202-5/+24
| | | | | of unicode objects, so that codecs that do a str->str decoding won't promote the result to unicode. This fixes SF bug #1241507.
* bug [ 957505 ] SocketServer module documentation misleadingGeorg Brandl2005-07-181-2/+2
|
* Whitespace normalization.Tim Peters2005-07-174-10/+10
|
* - Bug #1015140: disambiguated the term "article id" in nntplib docs andGeorg Brandl2005-07-171-2/+2
| | | | docstrings to either "article number" or "message id".
* Add support for FreeBSD 7.Hye-Shik Chang2005-07-176-2/+543
|
* bug [ 1238170 ] threading.Thread uses {} as default argumentGeorg Brandl2005-07-151-1/+3
|
* textwrap now processes text chucks at O(n) speed instead of O(n**2).Raymond Hettinger2005-07-151-9/+13
| | | | Patch #1209527 (Contributed by Connelly).
* RFE [ 1216944 ] Add Error Code Dictionary to urllib2Georg Brandl2005-07-142-0/+53
|
* Fix:Michael W. Hudson2005-07-121-0/+20
| | | | | | | [ 1229429 ] missing Py_DECREF in PyObject_CallMethod Add a test in test_enumerate, which is a bit random, but suffices (reversed_new calls PyObject_CallMethod under some circumstances).
* Fix "upload" command garbling and truncating files on Windows. If it's aPhillip J. Eby2005-07-071-1/+1
| | | | binary file, use 'rb'!
* Add test for hash commutativity.Raymond Hettinger2005-07-051-0/+10
|
* fixed tag generation to avoid null tagsPiers Lauder2005-07-051-2/+2
|
* bug #1177468: don't cache /dev/urandom file descriptor in os.urandomGeorg Brandl2005-07-041-8/+4
|
* Add doctest for examples in libweakref.tex to test_weakref.Georg Brandl2005-07-021-0/+86
|
* patch [ 1231538 ] Typo fix in compiler/transformer.py (WalkerEror)Georg Brandl2005-07-021-11/+11
|
* SF bug #1224347: int/long unification and hex()Raymond Hettinger2005-06-291-1/+1
| | | | Hex longs now print with lowercase letters like their int counterparts.
* Adapt output file to new Cookie JS output.Georg Brandl2005-06-271-4/+4
|
* Fix test cases for doctest.Georg Brandl2005-06-262-0/+4
|
* bug [ 839151 ] attempt to access sys.argv when it doesn't existGeorg Brandl2005-06-261-1/+5
|
* bug [ 1172785 ] doctest.script_from_examples() result sometimes un-exec-ableGeorg Brandl2005-06-261-1/+2
|