summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Add TESTFN_UNICODE_UNENCODEABLE, a unicode filename that can not beMark Hammond2003-12-031-0/+21
| | | | encoded using the default file system encoding.
* An interface to the LaunchServices API.Jack Jansen2003-12-021-0/+65
|
* OS/2+EMX: make the link() emulation available as os.link()Andrew MacIntyre2003-12-021-0/+1
|
* EMX lacks an implementation of link(). As Mailman wants os.link() toAndrew MacIntyre2003-12-021-0/+79
| | | | | | implement its locking scheme, this module implements a crude link() by way of copying the source to the destination provided the destination doesn't already exist.
* To find the curses extension as a DLL (on OS/2), we need to adjust theAndrew MacIntyre2003-12-021-0/+15
| | | | | | library search path to include the extension directory. Without this, the curses_panel extension can't find the curses extension/DLL, which exports some curses symbols to it.
* use same compiler switches as core for extensionsAndrew MacIntyre2003-12-021-2/+2
|
* SF patch #852140: keyword.py - use __contains__ and boolRaymond Hettinger2003-12-021-5/+1
| | | | Use a set instead of dict with values equal to one.
* Convert path objects to strings in askdirectory. Fixes #852314.Martin v. Löwis2003-12-011-0/+6
| | | | Backported to 2.3.
* Apply extract functions instead of lambda.Raymond Hettinger2003-12-012-3/+4
|
* Revert previous change. MAL preferred the old version.Raymond Hettinger2003-12-011-4/+41
|
* As discussed on python-dev, added two extractor functions to theRaymond Hettinger2003-12-011-0/+39
| | | | operator module.
* Simplifed the code.Raymond Hettinger2003-12-011-41/+4
|
* Add testcases for _winreg segfault (SF 851056).Guido van Rossum2003-11-301-1/+3
|
* Fix a bug discovered by Kalle Svensson: comparing sys.maxint toGuido van Rossum2003-11-291-1/+1
| | | | 2**32-1 makes no sense. Use 2**31-1 instead.
* - Removed FutureWarnings related to hex/oct literals and conversionsGuido van Rossum2003-11-295-58/+49
| | | | | | | | | | and left shifts. (Thanks to Kalle Svensson for SF patch 849227.) This addresses most of the remaining semantic changes promised by PEP 237, except for repr() of a long, which still shows the trailing 'L'. The PEP appears to promise warnings for operations that changed semantics compared to Python 2.3, but this is not implemented; we've suffered through enough warnings related to hex/oct literals and I think it's best to be silent now.
* Make sure the list.sort's decorate step unwinds itself before returningRaymond Hettinger2003-11-281-0/+7
| | | | | an exception raised by the key function. (Suggested by Michael Hudson.)
* See SF #848614: distutils' msvccompiler now tries to detect that MSVC6Thomas Heller2003-11-281-0/+10
| | | | | | | is installed but the registry settings are incomplete because the gui has never been run. Already backported to release23-maint.
* 2.4a0 Package Manager shouldn't attempt to use the 2.3 database.Jack Jansen2003-11-271-1/+1
| | | | | Things will definitely change before 2.4, but for now use a slightly different URL.