summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Fix erroneus argument parsing of socket.htons() on 64bit big endianHye-Shik Chang2003-12-171-1/+1
| | | | machines.
* Update documentations for str.rsplit() with Alex Martelli's rewrite.Hye-Shik Chang2003-12-172-28/+13
|
* Make example more readableAndrew M. Kuchling2003-12-161-3/+6
|
* Speedup set.update by using the override mode for PyDict_Merge().Raymond Hettinger2003-12-151-1/+1
|
* Add rsplit method for UserString, too.Hye-Shik Chang2003-12-151-0/+2
| | | | (Spotted by Raymond Hettinger)
* Fix typo and improve wording a bit.Raymond Hettinger2003-12-151-4/+4
|
* Add an entry for addition of {str,unicode}.rsplit.Hye-Shik Chang2003-12-151-0/+4
|
* Add rsplit method for str and unicode builtin types.Hye-Shik Chang2003-12-157-1/+402
| | | | | 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?
* missing word (should backport - is release23-maint still locked?)Skip Montanaro2003-12-151-1/+1
|
* Improve algorithm for set.difference when the input is not a set.Raymond Hettinger2003-12-151-43/+43
|
* 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.
* Remove a "temporary" piece of code that was probably unneeded sinceGuido van Rossum2003-12-151-7/+0
| | | | mid 1990. Remove an untrue XXX comment.
* SF #859811, typo in docsNeal Norwitz2003-12-144-5/+5
|
* SF #859810, typo in docNeal Norwitz2003-12-141-1/+1
|
* Add news item about processor support in urllib2.Jeremy Hylton2003-12-141-0/+4
|
* SF patch 852995: add processors feature to urllib2Jeremy Hylton2003-12-143-86/+783
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 a versionadded tag for traceback.format_exc()Neal Norwitz2003-12-131-0/+1
|
* Make private/local functions staticNeal Norwitz2003-12-131-6/+6
|
* After hearing from someone who gave up on timeout sockets due to aGuido van Rossum2003-12-131-0/+4
| | | | | mistake in his code, I'm adding a note explaining that you should call settimeout() before connect().
* Cleaning up recursive pieces left in the reorganization.Gustavo Niemeyer2003-12-131-119/+16
|
* Note that \var{ppos} values are not consecutive and should not be altered.Raymond Hettinger2003-12-131-1/+3
|
* * Refactor set.__contains__()Raymond Hettinger2003-12-131-21/+10
| | | | | * Use Py_RETURN_NONE everywhere. * Fix-up the firstpass check for the tp_print slot.
* Refactor set.discard() and set.remove().Raymond Hettinger2003-12-131-31/+22
|
* Improve argument checking speed.Raymond Hettinger2003-12-131-17/+44
|
* Use dictionary specific looping idiom where possible.Raymond Hettinger2003-12-131-114/+40
| | | | Simplifies and speeds-up the code.
* Simplify previous checkin -- a new function was not needed.Raymond Hettinger2003-12-131-26/+1
|
* Use PyDict_Contains() instead of PySequence_Contains().Raymond Hettinger2003-12-131-2/+2
|
* * Added a new method flag, METH_COEXIST.Raymond Hettinger2003-12-138-3/+97
| | | | | * Used the flag to optimize set.__contains__(), dict.__contains__(), dict.__getitem__(), and list.__getitem__().
* Expand the groupby() example to:Raymond Hettinger2003-12-121-0/+15
| | | | | | | * show that it is typically used with sorted data, * highlight commonalities with SQL's groupby and Unix's uniq, * demonstrate valid uses for the default identity function, * add some excitement by suggesting the range of possibilities.
* fix typo and join two paragraphsFred Drake2003-12-111-2/+1
|
* 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)
* Fix broken link (closes bug #852236). Thanks to Fedor Baart for bug file andBrett Cannon2003-12-111-1/+1
| | | | finding proper link.
* Revert previous change which didn't make sense the next day :-)Raymond Hettinger2003-12-101-16/+18
|
* - Renamed OSA.ComponentInstance to OSA.OSAComponentInstance. It is notJack Jansen2003-12-102-64/+77
| | | | | | | a real subtype of Cm.ComponentInstance right now, it turns out that is too difficult. - OSA.OSAComponentInstance initializer does accept a Cm.ComponentInstance instance, though, so at least things are becoming useable.
* Fix memory error treatment correctly. Going to dsu_fail causesHye-Shik Chang2003-12-101-1/+1
| | | | | deallocating garbage pointers; saved_ob_item and empty_ob_item. (Reviewed by Raymond Hettinger)
* Update to use python ints and int/long unification.Raymond Hettinger2003-12-101-18/+16
|
* Wrapper modules for _Launch and _OSA weren't added yet. Fixed.Jack Jansen2003-12-092-0/+2
|
* Make this module Python 2.3 compatible, and add a setup script that allowsJack Jansen2003-12-093-0/+19
| | | | it to be built for that python.
* Made this module compatible with Python2.3, and added a temporary setupJack Jansen2003-12-093-0/+21
| | | | script that allows it to be built for that Python.
* 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)
* Sigh. dsp files must be marked as binary files for cvs, otherwiseThomas Heller2003-12-081-108/+108
| | | | MSVC isn't able to read them. Thanks to David Rushby.
* Revamped framework search path handling for MacOSX. This should allowJack Jansen2003-12-082-9/+11
| | | | | | | | two framework builds (in /Library and /System/Library) to coexist with distutils linking against the right one. Should be backported to 2.3, but getting Apple-supplied Python to pick up these fixes is going to be non-trivial.
* forward port of 1.136.6.2:Jack Jansen2003-12-071-2/+2
| | | | $(prefix) wasn't communicated to Mac/OSX/Makefile for all targets. Fixed.
* fixed long standing typoJust van Rossum2003-12-071-13/+13
|
* SF patch #855195: fix typosRaymond Hettinger2003-12-074-3/+4
| | | | (Contributed by George Yoshida.)
* Fix missing paren.Raymond Hettinger2003-12-071-1/+1
|
* Fix double hyphen markup.Raymond Hettinger2003-12-071-3/+3
|