summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Use == rather than cmp(). The return value of cmp() is not well defined whenNeil Schemenauer2001-01-032-128/+130
| | | | comparing different types.
* Use numbers that can be accurately represented on binary machines. I hopeNeil Schemenauer2001-01-032-587/+587
| | | | this works on all platforms.
* Add forgotten importAndrew M. Kuchling2001-01-021-0/+1
|
* Duh. Instead of string.whitespace and string.digits, use isspace()Guido van Rossum2001-01-021-6/+5
| | | | and isdigit() methods.
* Add more tests for compare and coercion in preparation for the coercionNeil Schemenauer2001-01-024-0/+1346
| | | | overhaul. Closes SF patch #102878.
* Patch by kragen@pobox.com: When tracing is turned on, lines shorterGuido van Rossum2001-01-011-0/+2
| | | | | than a pixel don't get drawn at all. If you're building long curves made of such lines, this is a bad thing.
* Added test case for legal DOM childrenAndrew M. Kuchling2000-12-312-2/+28
|
* Patch #102485 ] Check for legal children when adding children to a DOM nodeAndrew M. Kuchling2000-12-311-6/+30
|
* Christmas present to myself: changed regrtest in two ways:Tim Peters2000-12-301-4/+30
| | | | | | | | | | | | | 1. When running in verbose mode, if any test happens to pass, print a warning that the apparent success may be bogus (stdout isn't compared in verbose mode). Been fooled by that too often. 2. When a test fails because the expected stdout doesn't match the actual stdout, print as much of stdout as did match before the first failing write. Else we get failures of the form "expected 'a', got 'b'" and a glance at the expected output file shows 500 instances of 'a' -- no idea where it failed, and, as in #1, trying to run in verbose mode instead doesn't help because stdout isn't compared then.
* getopt used to sort the long option names, in an attempt to simplifyTim Peters2000-12-291-12/+2
| | | | | | | the logic. That resulted in a bug. My previous getopt checkin repaired the bug but left the sorting. The solution is significantly simpler if we don't bother sorting at all, so this checkin gets rid of the sort and the code that relied on it.
* Fred, THIS NEEDS DOCS! The function docstrings tell the tale.Tim Peters2000-12-293-4/+188
| | | | | | | | | | | | | Christmas present to myself: the bisect module didn't define what happened if the new element was already in the list. It so happens that it inserted the new element "to the right" of all equal elements. Since it wasn't defined, among other bad implications it was a mystery how to use bisect to determine whether an element was already in the list (I've seen code that *assumed* "to the right" without justification). Added new methods bisect_left and insort_left that insert "to the left" instead; made the old names bisect and insort aliases for the new names bisect_right and insort_right; beefed up docstrings to explain what these actually do; and added a std test for the bisect module.
* Merge with 1.8 of pulldom.py:Martin v. Löwis2000-12-281-1/+7
| | | | Use types.UnicodeType if available, not type(u"").
* Merge changes up to 1.10 from PyXML:Martin v. Löwis2000-12-281-1/+11
| | | | | | | - implement hasAttribute and hasAttributeNS (1.7) - Node.replaceChild(): Update the sibling nodes to point to newChild. Set the .nextSibling attribute on oldChild instead of adding a .newChild attribute (1.9).
* Make Traceback header conform to new traceback ("innermost last" ->Guido van Rossum2000-12-272-2/+2
| | | | "most recent call last").
* Fix for SF bugTim Peters2000-12-271-13/+30
| | | | | | https://sourceforge.net/bugs/?func=detailbug&bug_id=126863&group_id=5470 "getopt long option handling broken". Tossed the excruciating logic in long_has_args in favor of something obviously correct.
* Add test case for SF bugTim Peters2000-12-271-0/+9
| | | | https://sourceforge.net/bugs/?func=detailbug&bug_id=126863&group_id=5470
* Make isspace(chr(32)) return trueAndrew M. Kuchling2000-12-261-1/+1
|
* The "context" parameter to the ExternalEntityRefParameter exposes internalFred Drake2000-12-232-4/+44
| | | | | | | | | information from the Expat library that is not part of its public API. Do not print this information as the format of the string may (and will) change as Expat evolves. Add additional tests to make sure the ParserCreate() function raises the right exceptions on illegal parameters.
* The regression test for the regex module should not trip the deprecationFred Drake2000-12-231-0/+3
| | | | warning for that module, so suppress just that one warning.
* Remove superfluous semicolonsAndrew M. Kuchling2000-12-233-8/+8
|
* Wrapper for _curses_panel module; currently this adds nothing extraAndrew M. Kuchling2000-12-221-0/+9
| | | | beyond what's in _curses_panel
* Patch #102492, fixing bug #116677:Andrew M. Kuchling2000-12-202-10/+42
| | | | | | | | | | give minidom.py behaviour that complies with the DOM Level 1 REC, which says that when a node newChild is added to the tree, "if the newChild is already in the tree, it is first removed." pulldom.py is patched to use the public minidom interface instead of setting .parentNode itself. Possibly this reduces pulldom's efficiency; someone else will have to pronounce on that.
* Change expected message for ValueError, fixing bug #126400Andrew M. Kuchling2000-12-201-1/+1
|
* Add forgotten initialization. Fixes bug #120994, "Traceback withAndrew M. Kuchling2000-12-201-0/+1
| | | | DISTUTILS_DEBUG set"
* Adding a warning about the regsub module. This also disables furtherGuido van Rossum2000-12-191-0/+7
| | | | | warnings in this same module, to prevent getting a warning about importing regex (we *know* that it's obsolete :-).