- 09 Jun, 2002 3 commits
-
-
Martin v. Löwis authored
-
Just van Rossum authored
-
Greg Ward authored
-
- 07 Jun, 2002 22 commits
-
-
Greg Ward authored
-
Greg Ward authored
-
Greg Ward authored
-
Greg Ward authored
Yuck.
-
Greg Ward authored
handle sentences like this: And she said, "Go to hell!" Can you believe that?
-
Greg Ward authored
sentences are separated by two spaces. Improve _fix_sentence_endings() a bit -- look for ".!?" instead of just ".", and factor out the list of sentence-ending punctuation characters to a class attribute.
-
Greg Ward authored
according to the conventions that I (and Tim Peters) learned in school.
-
Guido van Rossum authored
returned.
-
Guido van Rossum authored
timeout socket patch design.
-
Barry Warsaw authored
Not sure this is better in all cases. parse(): Fixed a bug in the output; the dict is referred to in the code as `countries' not `country'. Also added no-case-fold for the string "U.S." since the Virgin Islands name no longer wraps those in parentheses. main(): Fixed the argument parsing to agree with the docstring, i.e. --outputdict instead of --output. In the module docstring: - updated my email address - we don't need to explain about Python 1.5 regexps <wink> We also don't need to wrap the import of re with a try/except. Other style fixes: - untabification - revert back to <> style everywhere (and consistently)
-
Guido van Rossum authored
-
http://www.python.org/sf/565471Walter Dörwald authored
This patch replaces string module functions with string methods in the Tools/world/world scripts. It also updates two outdated URLs and the countrycodes dictionary. It fixes a bug where result of string.find() was checked for truth instead of compared with -1. It also replaces <> with != in two spots.
-
Guido van Rossum authored
-
Guido van Rossum authored
and fromfd.
-
Neal Norwitz authored
-
Guido van Rossum authored
fromfd() assumes a blocking non-timeout socket.
-
Guido van Rossum authored
settimeout(). Already, settimeout() canceled non-blocking mode; now, setblocking() also cancels the timeout. This is easier to document. (XXX should settimeout(0) be an alias for setblocking(0)? They seem to have roughly the same effect. Also, I'm not sure that the code in connect() and accept() is correct in all cases. We'll sort this out soon enough.)
-
Skip Montanaro authored
-
Guido van Rossum authored
cleanup as well, e.g. renamed NTinit to os_init.
-
Guido van Rossum authored
-
Guido van Rossum authored
delimiters. Also repaired some docstrings and comments.
-
Guido van Rossum authored
not testing it -- apparently test_timeout.py doesn't test anything useful): In internal_select(): - The tv_usec part of the timeout for select() was calculated wrong. - The first argument to select() was one too low. - The sense of the direction argument to internal_select() was inverted. In PySocketSock_settimeout(): - The calls to internal_setblocking() were swapped. Also, repaired some comments and fixed the test for the return value of internal_select() in sendall -- this was in the original patch.
-
- 06 Jun, 2002 15 commits
-
-
Jeremy Hylton authored
-
Neal Norwitz authored
Add version info, and fix another typo and wording spotted by /F. I think this is what he meant. :-)
-
Fred Drake authored
-
Fred Drake authored
-
Guido van Rossum authored
I've made considerable changes to Michael's code, specifically to use the select() system call directly and to store the timeout as a C double instead of a Python object; internally, -1.0 (or anything negative) represents the None from the API. I'm not 100% sure that all corner cases are covered correctly, so please keep an eye on this. Next I'm going to try it Windows before Tim complains. No way is this a bugfix candidate. :-)
-
Guido van Rossum authored
-
Guido van Rossum authored
I've made considerable changes to Michael's code, specifically to use the select() system call directly and to store the timeout as a C double instead of a Python object; internally, -1.0 (or anything negative) represents the None from the API. I'm not 100% sure that all corner cases are covered correctly, so please keep an eye on this. Next I'm going to try it Windows before Tim complains. No way is this a bugfix candidate. :-)
-
Guido van Rossum authored
-
Guido van Rossum authored
otherwise this code could segfault: from socket import socket s = socket.__new__(socket) s.recv(100)
-
Neal Norwitz authored
-
Neal Norwitz authored
-
Martin v. Löwis authored
-
Guido van Rossum authored
Straightforward fix. Will backport to 2.2. If there's ever a new 2.1 release, this could be backported there too (since it's an issue with anything that's got both a __reduce__ and a __setstate__).
-
Guido van Rossum authored
Straightforward fix. Will backport to 2.2. If there's ever a new 2.1 release, this could be backported there too (since it's an issue with anything that's got both a __reduce__ and a __setstate__).
-
http://www.python.org/sf/561478Walter Dörwald authored
This uses cgi.parse_header() in Checker.checkforhtml(), so that webchecker recognises the mime type text/html even if options are specified.
-