summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove self from the arguments for the function add_type().Walter Dörwald2003-12-191-1/+1
| | | | Backport candidate.
* SF #859573: Reduce compiler warnings on gcc 3.2 and above.Hye-Shik Chang2003-12-191-1/+14
|
* 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.
* Sync with python-mode project. Adds two changes:Skip Montanaro2003-12-181-5/+47
| | | | | | | * in py-checker-run, fall back to read-string if read-shell-command (XEmacs-specific) is not available. * highlight variables would mask builtins as if they were keywords.
* minor markup adjustmentFred Drake2003-12-181-2/+2
|
* Fix typoAndrew M. Kuchling2003-12-181-1/+1
|
* Add various itemsAndrew M. Kuchling2003-12-181-4/+60
|
* fix loss of a space after indexing markupFred Drake2003-12-181-1/+1
|
* - use correct markupFred Drake2003-12-181-5/+5
| | | | - re-wrap resulting long lines
* fix weird sh-bang lineFred Drake2003-12-181-1/+1
|
* avoid bash-ismsFred Drake2003-12-181-2/+2
|
* Guido grants a Christmas wish:Raymond Hettinger2003-12-171-0/+14
| | | | sorted() becomes a regular function instead of a classmethod.
* Guido grants a Christmas wish:Raymond Hettinger2003-12-171-2/+2
| | | | sorted() becomes a regular function instead of a classmethod.
* Remove methods that are no longer called by urllib2.Jeremy Hylton2003-12-171-14/+0
|
* Guido grants a Christmas wish:Raymond Hettinger2003-12-1715-138/+120
| | | | 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.
* 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)