Fred Drake
828f847d66
minor markup adjustment
2003-12-18 20:58:34 +00:00
Andrew M. Kuchling
3435820842
Fix typo
2003-12-18 13:28:35 +00:00
Andrew M. Kuchling
35f2b05dca
Add various items
2003-12-18 13:28:13 +00:00
Fred Drake
852fe0689a
fix loss of a space after indexing markup
2003-12-18 06:26:56 +00:00
Fred Drake
4d88322a2b
- use correct markup
...
- re-wrap resulting long lines
2003-12-18 06:23:33 +00:00
Fred Drake
1639f1cef9
fix weird sh-bang line
2003-12-18 05:29:33 +00:00
Fred Drake
2fe79783a7
avoid bash-isms
2003-12-18 05:28:30 +00:00
Raymond Hettinger
a95e87a488
Guido grants a Christmas wish:
...
sorted() becomes a regular function instead of a classmethod.
2003-12-17 21:38:26 +00:00
Raymond Hettinger
b606b3d08a
Guido grants a Christmas wish:
...
sorted() becomes a regular function instead of a classmethod.
2003-12-17 20:50:46 +00:00
Jeremy Hylton
e708fbd286
Remove methods that are no longer called by urllib2.
2003-12-17 20:47:28 +00:00
Raymond Hettinger
64958a15d7
Guido grants a Christmas wish:
...
sorted() becomes a regular function instead of a classmethod.
2003-12-17 20:43:33 +00:00
Jeremy Hylton
df38ea9c29
Add methods to MockHTTPClass for modern httplib interface.
...
Replace lots of assert_(x == y) with assertEqual(x, y).
2003-12-17 20:42:38 +00:00
Jeremy Hylton
023518a6a8
Rewrite AbstractHTTPHandler to use modern httplib interface.
...
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.
2003-12-17 18:52:16 +00:00
Hye-Shik Chang
a7b673f47c
Fix erroneus argument parsing of socket.htons() on 64bit big endian
...
machines.
2003-12-17 09:40:23 +00:00
Hye-Shik Chang
c6f066f9a3
Update documentations for str.rsplit() with Alex Martelli's rewrite.
2003-12-17 02:49:03 +00:00
Andrew M. Kuchling
4612bc587b
Make example more readable
2003-12-16 20:59:37 +00:00
Raymond Hettinger
81ad32e435
Speedup set.update by using the override mode for PyDict_Merge().
2003-12-15 21:16:06 +00:00
Hye-Shik Chang
eebb641f23
Add rsplit method for UserString, too.
...
(Spotted by Raymond Hettinger)
2003-12-15 19:46:09 +00:00
Raymond Hettinger
c0d49d82de
Fix typo and improve wording a bit.
2003-12-15 19:24:34 +00:00
Hye-Shik Chang
060ebedc40
Add an entry for addition of {str,unicode}.rsplit.
2003-12-15 18:51:19 +00:00
Hye-Shik Chang
3ae811b57d
Add rsplit method for str and unicode builtin types.
...
SF feature request #801847 .
Original patch is written by Sean Reifschneider.
2003-12-15 18:49:53 +00:00
Jeremy Hylton
dce391cb39
Remove __del__ methods to avoid creating uncollectable cyclic trash.
...
Keep close() methods for backwards compatibility.
Does any call close() explicitly?
2003-12-15 16:08:48 +00:00
Skip Montanaro
6485a87b9a
missing word (should backport - is release23-maint still locked?)
2003-12-15 14:38:57 +00:00
Raymond Hettinger
fb4e33a8e2
Improve algorithm for set.difference when the input is not a set.
2003-12-15 13:23:55 +00:00
Walter Dörwald
c2fcf9bb6b
Make the module docstring a raw string, so that the backslash in
...
"read until end of line ('\n') or EOF" will be treated literally.
Fixes SF bug #860155 .
2003-12-15 10:16:09 +00:00
Guido van Rossum
bd311d8e4e
Remove a "temporary" piece of code that was probably unneeded since
...
mid 1990. Remove an untrue XXX comment.
2003-12-15 06:06:24 +00:00
Neal Norwitz
1ecbd67923
SF #859811 , typo in docs
2003-12-14 15:02:54 +00:00
Neal Norwitz
360cd4186a
SF #859810 , typo in doc
2003-12-14 15:01:35 +00:00
Jeremy Hylton
37c5f2a74f
Add news item about processor support in urllib2.
2003-12-14 05:29:45 +00:00
Jeremy Hylton
c1be59f40a
SF patch 852995: add processors feature to urllib2
...
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.
2003-12-14 05:27:34 +00:00
Neal Norwitz
328f338196
SF #736962 , port test_future to unittest, add a bit more coverage, by Walter Dörwald
2003-12-13 22:43:34 +00:00
Neal Norwitz
378f7b5dca
Add a versionadded tag for traceback.format_exc()
2003-12-13 22:34:09 +00:00
Neal Norwitz
9342fb41c3
Make private/local functions static
2003-12-13 22:31:53 +00:00
Guido van Rossum
5a92175fbc
After hearing from someone who gave up on timeout sockets due to a
...
mistake in his code, I'm adding a note explaining that you should call
settimeout() before connect().
2003-12-13 22:12:53 +00:00
Gustavo Niemeyer
2cbdc2a461
Cleaning up recursive pieces left in the reorganization.
2003-12-13 20:32:08 +00:00
Raymond Hettinger
5469324cde
Note that \var{ppos} values are not consecutive and should not be altered.
2003-12-13 19:48:41 +00:00
Raymond Hettinger
438e02dfc8
* Refactor set.__contains__()
...
* Use Py_RETURN_NONE everywhere.
* Fix-up the firstpass check for the tp_print slot.
2003-12-13 19:38:47 +00:00
Raymond Hettinger
0deab62704
Refactor set.discard() and set.remove().
2003-12-13 18:53:18 +00:00
Raymond Hettinger
6a8bbdbe7b
Improve argument checking speed.
2003-12-13 15:21:55 +00:00
Raymond Hettinger
dc5ae11abf
Use dictionary specific looping idiom where possible.
...
Simplifies and speeds-up the code.
2003-12-13 14:46:46 +00:00
Raymond Hettinger
0c66967e3d
Simplify previous checkin -- a new function was not needed.
2003-12-13 13:31:55 +00:00
Raymond Hettinger
d3ae6729e7
Use PyDict_Contains() instead of PySequence_Contains().
2003-12-13 11:58:56 +00:00
Raymond Hettinger
8f5cdaa784
* Added a new method flag, METH_COEXIST.
...
* Used the flag to optimize set.__contains__(), dict.__contains__(),
dict.__getitem__(), and list.__getitem__().
2003-12-13 11:26:12 +00:00
Raymond Hettinger
feb78c94fa
Expand the groupby() example to:
...
* 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.
2003-12-12 13:13:47 +00:00
Fred Drake
1f84ed0d8a
fix typo and join two paragraphs
2003-12-11 19:45:53 +00:00
Walter Dörwald
b167b04a2e
Add tests to test_weakref.py to bring code coverage in _weakref.c up to 100%.
...
Port test_md5.py to PyUnit.
(Written by Neal Norwitz; from SF patch 736962)
(Backport candidate)
2003-12-11 12:34:05 +00:00
Brett Cannon
35415da67c
Fix broken link (closes bug #852236 ). Thanks to Fedor Baart for bug file and
...
finding proper link.
2003-12-11 04:37:24 +00:00
Raymond Hettinger
bbd290ab8d
Revert previous change which didn't make sense the next day :-)
2003-12-10 15:22:23 +00:00
Jack Jansen
0b565a6e42
- Renamed OSA.ComponentInstance to OSA.OSAComponentInstance. It is not
...
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.
2003-12-10 15:18:18 +00:00
Hye-Shik Chang
19cb193244
Fix memory error treatment correctly. Going to dsu_fail causes
...
deallocating garbage pointers; saved_ob_item and empty_ob_item.
(Reviewed by Raymond Hettinger)
2003-12-10 07:31:08 +00:00