Skip Montanaro
ac4ea13a3a
There are places in Python which assume bytes have 8-bits. Formalize that a
...
bit by checking the value of UCHAR_MAX in Include/Python.h. There was a
check in Objects/stringobject.c. Remove that. (Note that we don't define
UCHAR_MAX if it's not defined as the old test did.)
2003-12-22 16:31:41 +00:00
Hye-Shik Chang
66518bbb67
(forced commit)
...
Previous revision was a fix for a problem by not 2.204 but 2.205.
2003-12-22 01:33:08 +00:00
Hye-Shik Chang
40e9509dc7
Fix broken xmlcharrefreplace by rev 2.204.
...
(Pointy hat goes to perky)
2003-12-22 01:31:13 +00:00
Raymond Hettinger
9014560412
Make sure the UserDict copies do not share the same underlying
...
dictionary as the original. This parallels MvL's change to
Lib/os.py 1.56.
Backport candidate.
2003-12-21 22:19:08 +00:00
Thomas Heller
435f648584
Python 2.3.3 Window build number and release date.
2003-12-20 22:29:03 +00:00
Raymond Hettinger
70029c5450
Add the first of (hopefully) many third-party licenses and acknowledgements.
2003-12-20 20:53:31 +00:00
Walter Dörwald
893020b59b
Remove self from the arguments for the function add_type().
...
Backport candidate.
2003-12-19 18:15:10 +00:00
Hye-Shik Chang
4a264fb054
SF #859573 : Reduce compiler warnings on gcc 3.2 and above.
2003-12-19 01:59:56 +00:00
Hye-Shik Chang
8d2e08dcdf
Enable some unittests on FreeBSD.
...
test__locale: add typical POSIX-style full locale names.
test_locale: use en_US.US-ASCII on FreeBSD.
2003-12-19 01:16:03 +00:00
Skip Montanaro
302e550403
Sync with python-mode project. Adds two changes:
...
* 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.
2003-12-18 21:53:33 +00:00
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