Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add news item about processor support in urllib2. | Jeremy Hylton | 2003-12-14 | 1 | -0/+4 | |
| | ||||||
* | SF patch 852995: add processors feature to urllib2 | Jeremy Hylton | 2003-12-14 | 3 | -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 Norwitz | 2003-12-13 | 11 | -47/+101 | |
| | | | | Dörwald | |||||
* | Add a versionadded tag for traceback.format_exc() | Neal Norwitz | 2003-12-13 | 1 | -0/+1 | |
| | ||||||
* | Make private/local functions static | Neal Norwitz | 2003-12-13 | 1 | -6/+6 | |
| | ||||||
* | After hearing from someone who gave up on timeout sockets due to a | Guido van Rossum | 2003-12-13 | 1 | -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 Niemeyer | 2003-12-13 | 1 | -119/+16 | |
| | ||||||
* | Note that \var{ppos} values are not consecutive and should not be altered. | Raymond Hettinger | 2003-12-13 | 1 | -1/+3 | |
| | ||||||
* | * Refactor set.__contains__() | Raymond Hettinger | 2003-12-13 | 1 | -21/+10 | |
| | | | | | * Use Py_RETURN_NONE everywhere. * Fix-up the firstpass check for the tp_print slot. | |||||
* | Refactor set.discard() and set.remove(). | Raymond Hettinger | 2003-12-13 | 1 | -31/+22 | |
| | ||||||
* | Improve argument checking speed. | Raymond Hettinger | 2003-12-13 | 1 | -17/+44 | |
| | ||||||
* | Use dictionary specific looping idiom where possible. | Raymond Hettinger | 2003-12-13 | 1 | -114/+40 | |
| | | | | Simplifies and speeds-up the code. | |||||
* | Simplify previous checkin -- a new function was not needed. | Raymond Hettinger | 2003-12-13 | 1 | -26/+1 | |
| | ||||||
* | Use PyDict_Contains() instead of PySequence_Contains(). | Raymond Hettinger | 2003-12-13 | 1 | -2/+2 | |
| | ||||||
* | * Added a new method flag, METH_COEXIST. | Raymond Hettinger | 2003-12-13 | 8 | -3/+97 | |
| | | | | | * Used the flag to optimize set.__contains__(), dict.__contains__(), dict.__getitem__(), and list.__getitem__(). | |||||
* | Expand the groupby() example to: | Raymond Hettinger | 2003-12-12 | 1 | -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 paragraphs | Fred Drake | 2003-12-11 | 1 | -2/+1 | |
| | ||||||
* | Add tests to test_weakref.py to bring code coverage in _weakref.c up to 100%. | Walter Dörwald | 2003-12-11 | 3 | -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 and | Brett Cannon | 2003-12-11 | 1 | -1/+1 | |
| | | | | finding proper link. | |||||
* | Revert previous change which didn't make sense the next day :-) | Raymond Hettinger | 2003-12-10 | 1 | -16/+18 | |
| | ||||||
* | - Renamed OSA.ComponentInstance to OSA.OSAComponentInstance. It is not | Jack Jansen | 2003-12-10 | 2 | -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 causes | Hye-Shik Chang | 2003-12-10 | 1 | -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 Hettinger | 2003-12-10 | 1 | -18/+16 | |
| | ||||||
* | Wrapper modules for _Launch and _OSA weren't added yet. Fixed. | Jack Jansen | 2003-12-09 | 2 | -0/+2 | |
| | ||||||
* | Make this module Python 2.3 compatible, and add a setup script that allows | Jack Jansen | 2003-12-09 | 3 | -0/+19 | |
| | | | | it to be built for that python. | |||||
* | Made this module compatible with Python2.3, and added a temporary setup | Jack Jansen | 2003-12-09 | 3 | -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örwald | 2003-12-08 | 7 | -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, otherwise | Thomas Heller | 2003-12-08 | 1 | -108/+108 | |
| | | | | MSVC isn't able to read them. Thanks to David Rushby. | |||||
* | Revamped framework search path handling for MacOSX. This should allow | Jack Jansen | 2003-12-08 | 2 | -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 Jansen | 2003-12-07 | 1 | -2/+2 | |
| | | | | $(prefix) wasn't communicated to Mac/OSX/Makefile for all targets. Fixed. | |||||
* | fixed long standing typo | Just van Rossum | 2003-12-07 | 1 | -13/+13 | |
| | ||||||
* | SF patch #855195: fix typos | Raymond Hettinger | 2003-12-07 | 4 | -3/+4 | |
| | | | | (Contributed by George Yoshida.) | |||||
* | Fix missing paren. | Raymond Hettinger | 2003-12-07 | 1 | -1/+1 | |
| | ||||||
* | Fix double hyphen markup. | Raymond Hettinger | 2003-12-07 | 1 | -3/+3 | |
| | ||||||
* | SF patch #838938: Typos in the docs (Extending/Embedding + Python/C API) | Raymond Hettinger | 2003-12-07 | 4 | -9/+8 | |
| | | | | (Contributed by Florent Rougon.) | |||||
* | Put str() in alphabetical order. | Raymond Hettinger | 2003-12-07 | 1 | -10/+10 | |
| | ||||||
* | SF bug #855317: unittest: 5.3.9 Getting Extended Error Information | Raymond Hettinger | 2003-12-07 | 1 | -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. Kuchling | 2003-12-06 | 1 | -0/+28 | |
| | ||||||
* | Edit description a bit | Andrew M. Kuchling | 2003-12-06 | 1 | -2/+2 | |
| | ||||||
* | Incorporate suggestions from Aahz. | Raymond Hettinger | 2003-12-06 | 1 | -7/+9 | |
| | ||||||
* | Implement itertools.groupby() | Raymond Hettinger | 2003-12-06 | 4 | -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 readability | Steve Purcell | 2003-12-06 | 1 | -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 documentation | Raymond Hettinger | 2003-12-06 | 1 | -1/+1 | |
| | ||||||
* | Finished update to UH 3.4.2. | Jack Jansen | 2003-12-06 | 5 | -14/+417 | |
| | ||||||
* | Finished update to universal header 3.4.2. | Jack Jansen | 2003-12-05 | 19 | -79/+443 | |
| | ||||||
* | Reverting to previous version, which works. And I don't really care about | Jack Jansen | 2003-12-05 | 1 | -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 they | Thomas Heller | 2003-12-05 | 1 | -0/+3 | |
| | | | | are passed to the compiler. | |||||
* | Compile the files in the same order they are passed to the compiler. | Thomas Heller | 2003-12-05 | 3 | -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() description | Fred Drake | 2003-12-05 | 1 | -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 Drake | 2003-12-05 | 1 | -0/+3 | |
| |