summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* __init__.py: keep it compatible with older python (True and False == 1 and 0)Gregory P. Smith2004-01-132-6/+17
| | | | test_basics.py: updated for the set_get_returns_none() default of 2 change.
* __all__: Remove freenet_b64encode and freenet_b64decode.Barry Warsaw2004-01-071-1/+0
|
* SF Patch #864863: Bisect C implementationRaymond Hettinger2004-01-052-15/+18
| | | | (Contributed by Dmitry Vasiliev.)
* [SF #866875] Add a specialized routine for one characterHye-Shik Chang2004-01-051-14/+55
| | | | separaters on str.split() and str.rsplit().
* Exercise sorted() where possibleRaymond Hettinger2004-01-041-3/+1
|
* SF patch #868736: Disable GC for timeitRaymond Hettinger2004-01-041-1/+7
| | | | Make timings more consistent by temporarily disabling GC.
* More complete code coverage, including testing the new RFC 3548 support.Barry Warsaw2004-01-041-26/+181
|
* Added more complete RFC 3548 support for Base64, Base32, and Base16Barry Warsaw2004-01-041-9/+288
| | | | | encoding and decoding, including optional case folding and optional alternative alphabets.
* The script now takes an optional command-line argument to specify how manyAlex Martelli2004-01-021-4/+19
| | | | loops to run (default remains 50,000 if no argument is specified).
* [Bug #812325 ] tarfile.close() can write out more bytes to the outputAndrew M. Kuchling2004-01-021-0/+1
| | | | | than are specified by the buffer size. The patch calls .__write() to ensure that any full blocks are written out.
* - Print correct exception even if source file changed since shell wasKurt B. Kaiser2004-01-022-2/+7
| | | | | | | restarted. IDLEfork Patch 869012 Noam Raphael Modified Files: NEWS.txt run.py
* SF Patch 681780: Faster commonprefix (OS independent)Raymond Hettinger2003-12-311-10/+7
| | | | | | | Improved based on discussions at: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/252177 http://groups.google.com/groups?th=fc7b54f11af6b24e&seekm=bss2so$om$00$1@news.t-online.com
* Strengthen the test for hash effectivenessRaymond Hettinger2003-12-311-4/+4
|
* Fixes to support CJKCodecs as per SF bug #852347. Actually, thisBarry Warsaw2003-12-301-19/+16
| | | | | | | | | | | patch removes dependencies on the old unsupported KoreanCodecs package and the alternative JapaneseCodecs package. Since both of those provide aliases for their codecs, this removal just makes the generic codec names work. We needed to make slight changes to __init__() as well. This will be backported to Python 2.3 when its branch freeze is over.
* Bump version number to 2.5.5Barry Warsaw2003-12-301-1/+1
|
* As part of fixing bug #829532, add a test case that exercises os.makedirsAndrew M. Kuchling2003-12-231-1/+36
|
* [Bug #829532] Invoking os.makedirs() with an argument that contains aAndrew M. Kuchling2003-12-231-0/+2
| | | | | | | directory name with a single dot fails. The patch skips creating directories named os.curdir. (Patch by Bram Moolenaar) 2.3 bugfix candidate.
* Fix unicode.rsplit()'s bug that ignores separater on the end of string whenHye-Shik Chang2003-12-231-0/+2
| | | | using specialized splitter for 1 char sep.
* Make sure the UserDict copies do not share the same underlyingRaymond Hettinger2003-12-211-1/+1
| | | | | | | dictionary as the original. This parallels MvL's change to Lib/os.py 1.56. Backport candidate.
* Remove self from the arguments for the function add_type().Walter Dörwald2003-12-191-1/+1
| | | | Backport candidate.
* Enable some unittests on FreeBSD.Hye-Shik Chang2003-12-192-3/+7
| | | | | test__locale: add typical POSIX-style full locale names. test_locale: use en_US.US-ASCII on FreeBSD.
* Remove methods that are no longer called by urllib2.Jeremy Hylton2003-12-171-14/+0
|
* Guido grants a Christmas wish:Raymond Hettinger2003-12-178-76/+48
| | | | sorted() becomes a regular function instead of a classmethod.
* Add methods to MockHTTPClass for modern httplib interface.Jeremy Hylton2003-12-171-51/+77
| | | | Replace lots of assert_(x == y) with assertEqual(x, y).
* Rewrite AbstractHTTPHandler to use modern httplib interface.Jeremy Hylton2003-12-171-25/+26
| | | | | | | | | | | | The chief benefit of this change is that requests will now use HTTP/1.1 instead of HTTP/1.0. Bump the module version number as part of the change. There are two possible incompatibilities that we'll need to watch out for when we get to an alpha release. We may get a different class of exceptions out of httplib, and the do_open() method changed its signature. The latter is only important if anyone actually subclasses AbstractHTTPHandler.
* Add rsplit method for UserString, too.Hye-Shik Chang2003-12-151-0/+2
| | | | (Spotted by Raymond Hettinger)
* Add rsplit method for str and unicode builtin types.Hye-Shik Chang2003-12-152-0/+32
| | | | | SF feature request #801847. Original patch is written by Sean Reifschneider.
* Remove __del__ methods to avoid creating uncollectable cyclic trash.Jeremy Hylton2003-12-151-13/+4
| | | | | | Keep close() methods for backwards compatibility. Does any call close() explicitly?
* Make the module docstring a raw string, so that the backslash inWalter Dörwald2003-12-151-1/+1
| | | | | "read until end of line ('\n') or EOF" will be treated literally. Fixes SF bug #860155.
* SF patch 852995: add processors feature to urllib2Jeremy Hylton2003-12-142-85/+752
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | John J. Lee writes: "the patch makes it possible to implement functionality like HTTP cookie handling, Refresh handling, etc. etc. using handler objects. At the moment urllib2's handler objects aren't quite up to the job, which results in a lot of cut-n-paste and subclassing. I believe the changes are backwards-compatible, with the exception of people who've reimplemented build_opener()'s functionality -- those people would need to call opener.add_handler(HTTPErrorProcessor). The main change is allowing handlers to implement methods like: http_request(request) http_response(request, response) In addition to the usual http_open(request) http_error{_*}(...) " Note that the change isn't well documented at least in part because handlers aren't well documented at all. Need to fix this. Add a bunch of new tests. It appears that none of these tests actually use the network, so they don't need to be guarded by a resource flag.
* SF #736962, port test_future to unittest, add a bit more coverage, by Walter ↵Neal Norwitz2003-12-1311-47/+101
| | | | Dörwald
* Add tests to test_weakref.py to bring code coverage in _weakref.c up to 100%.Walter Dörwald2003-12-113-27/+54
| | | | | | | | Port test_md5.py to PyUnit. (Written by Neal Norwitz; from SF patch 736962) (Backport candidate)
* Wrapper modules for _Launch and _OSA weren't added yet. Fixed.Jack Jansen2003-12-092-0/+2
|
* Move list and tuple tests from test_types.py to their own scripts:Walter Dörwald2003-12-087-514/+696
| | | | | | test_tuple.py and test_list.py. Common tests for tuple, list and UserList are shared (in seq_tests.py and list_tests.py). Port tests to PyUnit. (From SF patch #736962)
* Implement itertools.groupby()Raymond Hettinger2003-12-061-1/+107
| | | | | | | Original idea by Guido van Rossum. Idea for skipable inner iterators by Raymond Hettinger. Idea for argument order and identity function default by Alex Martelli. Implementation by Hye-Shik Chang (with tweaks by Raymond Hettinger).
* Variation of Thomas Heller's patch (722638) for improving readabilitySteve Purcell2003-12-061-10/+26
| | | | | | of test failure output. Irrelevant traceback levels are pruned from formatted traceback strings.
* Finished update to universal header 3.4.2.Jack Jansen2003-12-0519-79/+443
|
* Reverting to previous version, which works. And I don't really care aboutJack Jansen2003-12-051-83/+0
| | | | | the new waste functionality because it's probably going to be dropped anyway.
* Compile the files in the same order they are passed to the compiler.Thomas Heller2003-12-053-3/+15
| | | | | | | | | Use case: Sometimes 'compiling' source files (with SWIG, for example) creates additionl files which included by later sources. The win32all setup script requires this. There is no SF item for this, but it was discussed on distutils-sig: http://mail.python.org/pipermail/distutils-sig/2003-November/003514.html
* SF bug #849662. Dramatically, improve comparison speed for "if shl == None".Raymond Hettinger2003-12-041-0/+2
|
* Fix error in exception message.Brett Cannon2003-12-041-1/+1
|
* Remove extra copy of test_key_with_exception that somehow appearedMichael W. Hudson2003-12-041-7/+0
| | | | during a CVS merge.
* Fixes and tests for various "holding pointers when arbitrary Python codeMichael W. Hudson2003-12-041-0/+45
| | | | | | can run" bugs as discussed in [ 848856 ] couple of new list.sort bugs
* Typo repair; added some comments and horizontal whitespace.Tim Peters2003-12-041-9/+10
|
* Adding an interface to the high-level Open Scripting Architecture,Jack Jansen2003-12-032-0/+212
| | | | | | by request of Donovan Preston. In return, he promised to use this to create a Python OSA component, which would turn Python into a first-class OSA scripting language (like AppleScript itself).
* Fix test_unicode_file errors on platforms without Unicode file support,Mark Hammond2003-12-032-19/+27
| | | | | by setting TESTFN_UNICODE_UNENCODEABLE on these platforms. test_unicode_file only attempts to use the name for testing if not None.
* Add parameters indent, width and depth to pprint.pprint() and pprint.pformat()Walter Dörwald2003-12-032-4/+11
| | | | and pass them along to the PrettyPrinter constructor.
* Patch #750542: pprint now will pretty print subclasses of list, tupleWalter Dörwald2003-12-032-13/+52
| | | | and dict too, as long as they don't overwrite __repr__().
* Reduce the size of Big String and Big Binary tests to 2**14 (minus oneGuido van Rossum2003-12-031-2/+2
| | | | | | | for Big String). This should make the tests pass on Win98SE. Note that the docs only promise lengths up to 2048. Unfortunately this no longer tests for the segfault I was seeing earlier, but I'm confident I've nailed that one. :-) Fixes SF 852281. Will backport to 2.3.
* Add test for bug "[ 846133 ] os.chmod/os.utime/shutil do not work withMark Hammond2003-12-032-78/+148
| | | | | | | unicode filenames" Reorganize tests into functions so more combinations of unicode/encoded/ascii can be tested, and while I was at it, upgrade to unittest based test.