summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* SF patch #838938: Typos in the docs (Extending/Embedding + Python/C API)Raymond Hettinger2003-12-074-9/+8
| | | | (Contributed by Florent Rougon.)
* Put str() in alphabetical order.Raymond Hettinger2003-12-071-10/+10
|
* SF bug #855317: unittest: 5.3.9 Getting Extended Error InformationRaymond Hettinger2003-12-071-42/+0
| | | | | | | The example code did not work and could not easily be made to work. Since the docs were already complex and the feature was not used (it took two years for the errors to surface), we decided to dedocument it entirely, leaving unittest cleaner than before.
* Add groupby()Andrew M. Kuchling2003-12-061-0/+28
|
* Edit description a bitAndrew M. Kuchling2003-12-061-2/+2
|
* Incorporate suggestions from Aahz.Raymond Hettinger2003-12-061-7/+9
|
* Implement itertools.groupby()Raymond Hettinger2003-12-064-2/+493
| | | | | | | 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.
* SF bug #844123: "up" instead of "down" in turtle module documentationRaymond Hettinger2003-12-061-1/+1
|
* Finished update to UH 3.4.2.Jack Jansen2003-12-065-14/+417
|
* 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.
* distutils compilers now compile source files in the same order as theyThomas Heller2003-12-051-0/+3
| | | | are passed to the compiler.
* 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
* - fix markup in the bool() descriptionFred Drake2003-12-051-10/+9
| | | | | - note the behavior of bool() with no arg in the main body of the description
* Add news about removal of the PendingDeprecationWarning from apply().Fred Drake2003-12-051-0/+3
|