summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Patch #505375: Make doc strings optional.Martin v. Löwis2002-06-096-31/+111
|
* escape 8-bit chars when generating .py files. fixes bug #566302Just van Rossum2002-06-091-1/+16
|
* Make all of TextWrapper's options keyword args to the constructor.Greg Ward2002-06-091-5/+9
|
* Record copyright and author.Greg Ward2002-06-071-0/+4
|
* Use True/False instead of 1/0.Greg Ward2002-06-071-5/+5
|
* Remove islower() -- not used anymore.Greg Ward2002-06-071-6/+0
|
* Conform to the bloody coding standards: "def foo()" not "def foo ()".Greg Ward2002-06-071-10/+10
| | | | Yuck.
* Convert _fix_sentence_endings() to use a regex, and augment it toGreg Ward2002-06-071-8/+8
| | | | | handle sentences like this: And she said, "Go to hell!" Can you believe that?
* Add fix_sentence_endings option to control whether we ensure thatGreg Ward2002-06-071-16/+25
| | | | | | | | 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.
* Initial revision. Currently biased towards English in a fixed-width font,Greg Ward2002-06-071-0/+239
| | | | according to the conventions that I (and Tim Peters) learned in school.
* Move the conex_finally label up, so that the errno value is alwaysGuido van Rossum2002-06-071-1/+1
| | | | returned.
* Added Bernard Yue who wrote test_timeout.py and participated in theGuido van Rossum2002-06-071-0/+1
| | | | timeout socket patch design.
* Added the 7 new top level domains, and reworded the nameorgs output.Barry Warsaw2002-06-071-113/+110
| | | | | | | | | | | | | | | | | | | | | | | | 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)
* Added -t (--threshold) option to call gc.set_threshold(N).Guido van Rossum2002-06-071-25/+30
|
* Apply diff2.txt from SF patch http://www.python.org/sf/565471Walter Dörwald2002-06-071-35/+31
| | | | | | | | | | | | | 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.
* Add timeout mode. Clarify gnu_getopt.Guido van Rossum2002-06-071-1/+7
|
* Clarify the interaction between timeout/non-blocking mode, makefileGuido van Rossum2002-06-071-1/+10
| | | | and fromfd.
* Fix typoNeal Norwitz2002-06-071-1/+1
|
* Clarify the interaction between blocking and timeouts. Explain thatGuido van Rossum2002-06-071-16/+23
| | | | fromfd() assumes a blocking non-timeout socket.
* I decided to change the interaction between setblocking() andGuido van Rossum2002-06-071-5/+2
| | | | | | | | | | 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.)
* gnu_getopt should be exported in __all__Skip Montanaro2002-06-071-1/+1
|
* Major cleanup. Renamed static methods to avoid Py prefix. Other miscGuido van Rossum2002-06-071-296/+290
| | | | cleanup as well, e.g. renamed NTinit to os_init.
* Repair a comment.Guido van Rossum2002-06-071-1/+1
|
* Whitespace normalization, folding long lines, uniform commentGuido van Rossum2002-06-071-224/+229
| | | | delimiters. Also repaired some docstrings and comments.
* Correct several blunders in the timeout code, mostly my own fault (forGuido van Rossum2002-06-071-14/+12
| | | | | | | | | | | | | | | | | | | | | 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.
* Remove casts to PyObject * when declaration is for PyObject *Jeremy Hylton2002-06-061-3/+3
|
* Add version info, and fix another typo and wording spotted by /F. I think ↵Neal Norwitz2002-06-061-2/+4
| | | | this is what he meant. :-)
* Fix typo spotted by Fredrik Lundh.Fred Drake2002-06-061-1/+1
|
* Fix some markup errors and adjust wording slightly.Fred Drake2002-06-061-15/+15
|
* SF patch 555085 (timeout socket implementation) by Michael Gilfix.Guido van Rossum2002-06-061-0/+23
| | | | | | | | | | | | | 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. :-)
* Michael Gilfix of SF patch 555085 fame.Guido van Rossum2002-06-061-0/+1
|
* SF patch 555085 (timeout socket implementation) by Michael Gilfix.Guido van Rossum2002-06-065-123/+690
| | | | | | | | | | | | | 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. :-)
* The insint() function is not used. Nuke it.Guido van Rossum2002-06-061-15/+0
|
* The tp_new implementation should initialize the errorhandler field,Guido van Rossum2002-06-061-1/+3
| | | | | | | | otherwise this code could segfault: from socket import socket s = socket.__new__(socket) s.recv(100)
* Remove uses of string module and stat.ST_MODENeal Norwitz2002-06-063-11/+7
|
* Remove another reference to stat.ST_MODENeal Norwitz2002-06-061-1/+1
|
* Use isinstance for the type check, use booleans.Martin v. Löwis2002-06-061-4/+4
|
* Fix from SF patch 565085: copy._reduction doesn't __setstate__.Guido van Rossum2002-06-061-0/+29
| | | | | | 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__).
* Fix from SF patch 565085: copy._reduction doesn't __setstate__.Guido van Rossum2002-06-061-1/+4
| | | | | | 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__).
* Apply diff.txt from SF patch http://www.python.org/sf/561478Walter Dörwald2002-06-061-1/+2
| | | | | | This uses cgi.parse_header() in Checker.checkforhtml(), so that webchecker recognises the mime type text/html even if options are specified.
* Close SF bug 563740. complex() now finds __complex__() in new style classes.Raymond Hettinger2002-06-063-28/+36
| | | | | Made conversion failure error messages consistent between types. Added related unittests.
* Pyrangeiter_Type && range_iter should be staticNeal Norwitz2002-06-061-5/+5
|
* Change warning to debug level; it's a very minor issue.Jeremy Hylton2002-06-061-2/+2
| | | | | The specific warning is that clean didn't find a directory that should be removed if it exists.
* Stop testing for sigprocmask. This is a stop gap measure until I workMichael W. Hudson2002-06-063-7/+3
| | | | | out how to just activate my code on platforms where I know it works (currently only linux/x86).
* Patch 473512: add GNU style scanning as gnu_getopt.Martin v. Löwis2002-06-065-2/+103
|
* Patch #551911: Escape . properly.Martin v. Löwis2002-06-061-1/+1
|
* Replace obsolete stat module constants withWalter Dörwald2002-06-062-5/+5
| | | | | | equivalent attributes in a few more spots. This closes SF patch http://www.python.org/sf/562373
* CRLF -> LFGuido van Rossum2002-06-060-0/+0
|
* Skip Montanaro's patch, SF 559833, exposing xrange type in builtins.Raymond Hettinger2002-06-054-46/+91
| | | | | Also, added more regression tests to cover the new type and test its conformity with range().
* open method changed to use arguments and set instance host/port values ↵Piers Lauder2002-06-051-8/+12
| | | | (instead of __init__)