summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace normalization.Tim Peters2001-01-157-504/+504
|
* Whitespace normalization.Tim Peters2001-01-1517-3199/+3197
|
* -- don't use recursion for unbounded non-greedy repeatFredrik Lundh2001-01-141-1/+1
| | | | | | | | (bugs #115903, #115696) This is based on a patch by Darrel Gallion. I'm not 100% sure about this fix, but I haven't managed to come up with any test case it cannot handle...
* Whitespace normalization.Tim Peters2001-01-1418-1994/+1991
|
* Whitespace normalization.Tim Peters2001-01-1416-1235/+1233
|
* - Don't hardcode Unix filename syntax when opening ~/.pdbrc.Guido van Rossum2001-01-141-4/+4
| | | | - Conform to standard coding style in a few more places.
* - Use mimetypes.types_map to initialize extensions_map.Guido van Rossum2001-01-141-9/+9
| | | | | | - Change the default file type to application/octet-stream. - Add support to recognize .py, .c, .h files as text/plain (this is what I use most :-).
* SF Patch #103211.Guido van Rossum2001-01-141-4/+4
| | | | | | | | | Ping apparently doesn't check in Accepted patches, so I'm doing this for him. According to Ping: The name of the controller class should be "Konqueror", not "Konquerer". (See the website http://www.konqueror.org/.)
* Make the copyright message the same as for the "real" interpreter.Guido van Rossum2001-01-141-1/+2
|
* Whitespace normalization.Tim Peters2001-01-143-98/+98
|
* SF Patch #103232 by dougfort: Preserve Nonstandard Port Number in HostGuido van Rossum2001-01-141-1/+6
| | | | | | | | | | Header Dougfort's comments: httplib does not include ':port ' in the HTTP 1.1 'Host:' header. This causes problems if the server is not listening on Port 80. The test case I use is the login to /manage under Zope, with Zope listening on port 8080. Zope returns a <frameset> with the <frame> source URLs lacking the :8080.
* SRE: stricter pattern syntax checking (covers parts of bug #115900)Fredrik Lundh2001-01-141-7/+17
|
* Whitespace standardization.Tim Peters2001-01-146-535/+534
|
* reapplied Fred's "recommended style" patch...Fredrik Lundh2001-01-141-8/+8
|
* SRE fixes for 2.1 alpha:Fredrik Lundh2001-01-145-38/+64
| | | | | | | | | | -- added some more docstrings -- fixed typo in scanner class (#125531) -- the multiline flag (?m) should't affect the \Z operator (#127259) -- fixed non-greedy backtracking bug (#123769, #127259) -- added sre.DEBUG flag (currently dumps the parsed pattern structure) -- fixed a couple of glitches in groupdict (the #126587 memory leak had already been fixed by AMK)
* - Added keyword argument 'append' to filterwarnings(); if true, thisGuido van Rossum2001-01-141-5/+10
| | | | | | | appends to list of filters instead of inserting at the front. This is useful to add a filter with a lower priority than -W options. - Cosmetic improvements to a docstring and an error message.
* Reverting a dumb experimental version I checked in by mistake.Tim Peters2001-01-141-9/+2
|
* SF bug 128713: type(mmap_object) blew up on Linux.Tim Peters2001-01-143-2/+12
|
* mwh: [ Patch #103228 ] traceback.py nit.Guido van Rossum2001-01-131-1/+5
| | | | | When the exception has no message, don't insert a colon after the exception name.
* SF Patch #103227 by mwh: make code.py appreciate softspaceGuido van Rossum2001-01-131-0/+14
|
* No text file relying on significant trailing whitespace is robust underTim Peters2001-01-131-16/+16
| | | | modification. Removed the need for that.
* SF Patch #103225 by Ping: httplib: smallest Python patch everGuido van Rossum2001-01-131-2/+5
| | | | | | | The ASCII-art diagram at the top of httplib contains a backslash at the end of a line, which causes Python to remove the newline. This one-character patch adds a space after the backslash so it will appear at the end of the line in the docstring as intended.
* Fix stupidity.Tim Peters2001-01-131-1/+1
|
* Guido found a brand new race in tempfile on Linux, due to Linux changingTim Peters2001-01-133-16/+121
| | | | | | | | | | | | pid across threads (but in that case, it's still the same process, and so still sharing the "template" cache in tempfile.py). Repaired that, and added a new std test. On Linux, someone please run that standalone with more files and/or more threads; e.g., python lib/test/test_threadedtempfile.py -f 1000 -t 10 to run with 10 threads each creating (and deleting) 1000 temp files.
* A variant of SF patch 103028 (Make tempfile.mktemp threadsafe).Tim Peters2001-01-121-12/+45
| | | | | | | Tested on Windows. Should be tested on Linux. Should also be tested on some platform without threads (I simulated that by making the "import thread" fail, but that's not the same as actually doing it!).
* Delete unused import of pprint moduleAndrew M. Kuchling2001-01-111-1/+0
|
* Patch #103134: Support import lines in pth files.Martin v. Löwis2001-01-111-1/+4
|
* Adapted version of SF Patch #103173 by pyretic: make uu.decode workGuido van Rossum2001-01-101-5/+4
| | | | | | | | | | | | | | with spaces in filename. I changed the module to use string methods instead of the string module. Also, instead of stripping the last character of the filename (assuming this is the linefeed), I strip trailing whitespace (assuming creating files with trailing whitespace in their name cannot possibly be a wise idea). (Note that I believe that /F's "workaround for broken uuencoders" is no longer needed since the recent fix to binascii.c, but I'll leave it in since it appears pretty harmless.)
* Moved the test codec definition to a new module and updated the test andMarc-André Lemburg2001-01-103-54/+97
| | | | | | | codec to test all charmap codec features. As side-effect of moving the test codec into a new module, the encodings package codec import mechanism is checked as well.
* Assorted xreadlines problems:Tim Peters2001-01-092-9/+10
| | | | | | | Wasn't built on Windows; not in config.c either. Module init function missing DL_EXPORT magic. test_xreadline output file obviously wrong (started w/ "test_xrl"). test program very unclear about what was expected.
* Test for xreadline.Guido van Rossum2001-01-092-0/+46
|
* Check in patch #102971: if library_dirs is a string, split it usingAndrew M. Kuchling2001-01-091-0/+2
| | | | os.pathsep
* Patch #102953: Fix bug #125452, where shlex.shlex hangs when itAndrew M. Kuchling2001-01-091-0/+5
| | | | | encounters a string with an unmatched quote, by adding a check for EOF in the 'quotes' state.
* GetoptError is always initialized with exactly two parameters, so simplifyFred Drake2001-01-081-7/+4
| | | | the constructor.
* Fixed bug which caused HTTPS not to work at all with string URLsMoshe Zadka2001-01-081-1/+1
|
* Text.__init__(): Make sure the data parameter is a string (8-bit orFred Drake2001-01-081-0/+2
| | | | | | Unicode); raise TypeError if not. This closes SF bug #126866.
* 18 isn't a prime (duh).Tim Peters2001-01-081-1/+1
|
* MS Win32 .readline() speedup, as discussed on Python-Dev. This is a trickyTim Peters2001-01-072-0/+61
| | | | | | variant that never needs to "search from the right". Also fixed unlikely memory leak in get_line, if string size overflows INTMAX. Also new std test test_bufio to make sure .readline() works.
* Add more regression tests, including for the import statement variations.Fred Drake2001-01-072-10/+60
| | | | | These will detect regression on SF bug #127271 and other import statement bugs.
* This patch adds a new feature to the builtin charmap codec:Marc-André Lemburg2001-01-062-0/+66
| | | | | | | | | | | | | | | the mapping dictionaries can now contain 1-n mappings, meaning that character ordinals may be mapped to strings or Unicode object, e.g. 0x0078 ('x') -> u"abc", causing the ordinal to be replaced by the complete string or Unicode object instead of just one character. Another feature introduced by the patch is that of mapping oridnals to the emtpy string. This allows removing characters. The patch is different from patch #103100 in that it does not cause a performance hit for the normal use case of 1-1 mappings. Written by Marc-Andre Lemburg, copyright assigned to Guido van Rossum.
* Speed it up by using readlines(sizehint). It's still slower thanGuido van Rossum2001-01-051-10/+39
| | | | | | | other ways of reading input. :-( In the process, I added an optional bufsize argument to the input() function and the FileInput class.
* Add test cases based on RFC 1808. So now we actually have a test suiteFred Drake2001-01-052-0/+106
| | | | | | | the urljoin() function, which exercises the urlparse() and urlunparse() functions as side effects. (Moshe, why did we have perfectly empty tests checked in for this?)
* urlunparse(): Do not add a leading slash to the path if it is empty.Fred Drake2001-01-051-6/+12
| | | | | | | | | urljoin(): Make this conform to RFC 1808 for all examples given in that RFC (both "Normal" and "Abnormal"), so long as that RFC does not conflict the older RFC 1630, which also specified relative URL resolution. This closes SF bug #110832 (Jitterbug PR#194).
* When a PyCFunction that takes only positional parameters is called withFred Drake2001-01-042-1/+22
| | | | | | | | | | an empty keywords dictionary (via apply() or the extended call syntax), the keywords dict should be ignored. If the keywords dict is not empty, TypeError should be raised. (Between the restructuring of the call machinery and this patch, an empty dict in this situation would trigger a SystemError via PyErr_BadInternalCall().) Added regression tests to detect errors for this.
* No more RCmp.Neil Schemenauer2001-01-041-22/+1
|
* Sequence repeat works now for in-place multiply with an integer typeNeil Schemenauer2001-01-041-4/+4
| | | | as the left operand. I don't know if this is a feature or a bug.
* __rcmp__ no longer gets called on instances. Remove the test for it.Neil Schemenauer2001-01-041-12/+1
|
* Numbers no longer compare smaller than all other types. Fix the onlyNeil Schemenauer2001-01-041-1/+2
| | | | part of the testsuite that breaks. The old behavior may be restored.
* Actually call the object with an __call__ method, instead of justJeremy Hylton2001-01-031-0/+1
| | | | | checking if it is callable. This is the only place in the test suite where an __call__ method is called.
* This patch changes the default behaviour of the builtin charmapMarc-André Lemburg2001-01-0354-269/+377
| | | | | | | | | | | | | | | | codec to not apply Latin-1 mappings for keys which are not found in the mapping dictionaries, but instead treat them as undefined mappings. The patch was originally written by Martin v. Loewis with some additional (cosmetic) changes and an updated test script by Marc-Andre Lemburg. The standard codecs were recreated from the most current files available at the Unicode.org site using the Tools/scripts/gencodec.py tool. This patch closes the bugs #116285 and #119960.