summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Patch suggested (and partially provided) by Lars Damerow: instead ofGuido van Rossum1999-06-171-5/+8
| | | | | | always lowercasing the option name, call a method optionxform() which can be overridden. Also make the regexps SECTRE and OPTRE non-private variables so they can also be overridden.
* In collect_children(), put a try-except around os.waitpid() because itGuido van Rossum1999-06-171-1/+4
| | | | | may raise an exception (when there are no children). Reported by Andy Dustman.
* open(): Make the mode parameter optional; if omitted or None, use theFred Drake1999-06-171-1/+6
| | | | | | | | mode attribute of the file object (if it has one), otherwise use 'rb'. The documentation should still show this as required until there's a new release.
* Suppress warning print statements about modules not found, they areGuido van Rossum1999-06-161-2/+3
| | | | confusing to end users of IDEs.
* Sjoerd Mullender:Guido van Rossum1999-06-161-8/+24
| | | | | | | Added support for unseekable files. (I use unqualified excepts since we don't know why the seek/tell might fail. In my case it was because of an AttributeError.)
* Laurence Tratt notes that the accept() call in get_request() can fail,Guido van Rossum1999-06-151-1/+4
| | | | | and suggests putting a try/except around the get_request() call in handle_request(). (All in class TCPServer.)
* Add the test case provided by Barry Scott for his patch.Guido van Rossum1999-06-151-0/+5
|
* Barry Scott writes:Guido van Rossum1999-06-151-1/+1
| | | | | | | | | | | | | | | | | | | Problem: rfc822.py in 1.5.2 final loses the quotes around quoted local-part names. The fix is to preserve the quotes around a local-part name in an address. Test: import rfc822 a = rfc822.AddrlistClass('(Comment stuff) "Quoted name"@somewhere.com') a.getaddrlist() The correct result is: [('Comment stuff', '"Quoted name"@somewhere.com')]
* Added a couple of endswith test cases for bugs reported by Timbot.Barry Warsaw1999-06-151-0/+8
| | | | | Also added a short circuit for the regression test suite since CVS insisted on putting this file in the main branch. :(
* Added more tests of joinBarry Warsaw1999-06-141-0/+9
|
* Message.getheaders(): If there are no matching headers, return anFred Drake1999-06-141-2/+3
| | | | empty list instead of None. (Guido's request.)
* After more discussion with Jim, change the behavior so that only aGuido van Rossum1999-06-111-9/+1
| | | | | *missing* content-type at the outer level of a POST defaults to urlencoded. In all other circumstances, the default is read_singe().
* Two extra startswith testsBarry Warsaw1999-06-111-0/+3
|
* Harness can now test object methods directly, if they aren't availableBarry Warsaw1999-06-111-2/+14
| | | | | | in the string module. Add a bunch of new tests for extended startswith/endswith arguments.
* Mark Hammond: patch for Windows/CE.Guido van Rossum1999-06-111-0/+15
|
* Output for the regression test of the new string methods.Barry Warsaw1999-06-101-0/+3
|
* Regression test for the new string methods.Barry Warsaw1999-06-101-0/+110
|
* Relocating file to Lib/lib-old.Fred Drake1999-06-101-25/+0
|
* Added a few more bugs to the doc string; reformatted existing bugs.Guido van Rossum1999-06-101-8/+23
|
* Co-production with Tim Peters, implementing a suggestion by MarkGuido van Rossum1999-06-101-6/+31
| | | | | | Hammond: record top-level functions (as Function instances, a simple subclass of Class). You must use the new interface readmodule_ex() to get these, though.
* Fix by Sjoerd for a package related bug: If you have a non-empyGuido van Rossum1999-06-091-6/+6
| | | | | | | | | | | | | | __init__.py it isn't read. (Sjoerd just came up with this, so it's not heavily tested.) Other (yet unsolved) package problems noted by Sjoerd: - If you have a package and a module inside that or another package with the same name, module caching doesn't work properly since the key is the base name of the module/package. - The only entry that is returned when you readmodule a package is a __path__ whose value is a list which confuses certain class browsers that I wrote. (Hm, this could be construed as a feature.)
* Updated lagging version#. Also added some comments about how quote()Guido van Rossum1999-06-091-1/+3
| | | | and quote_plus() can be optimized tenfold.
* Patch by Per Cederqvist:Guido van Rossum1999-06-091-3/+6
| | | | | | | I've found two places where smtplib.py sends an extra trailing space on command lines to the SMTP server. I don't know if this ever causes any problems, but I'd prefer to be on the safe side. The enclosed patch removes the extra space.
* Add unrelated but handy function: timegm(), to calculate UnixGuido van Rossum1999-06-091-0/+17
| | | | timestamp from GMT tuple.
* Don't just die if gethostbyaddr() fails -- as it can when DNS isGuido van Rossum1999-06-091-6/+10
| | | | unreachable -- but fall back to using whatever hostname we have.
* Oops, Sjoerd was in a hurry. This patch from him fixes some lengthGuido van Rossum1999-06-091-0/+1
| | | | math in the Chunk class.
* Patch/new code by Sjoerd Mullender:Guido van Rossum1999-06-092-74/+155
| | | | Separate the Chunk class out of the aifc module into a new "chunk" module.
* Fix (sanctioned by Sjoerd) for a problem reported by Andreas Faerber:Guido van Rossum1999-06-081-1/+1
| | | | | | all processing instruction target names containing 'xml' were rejected, instead (as the standard rejects) only the name 'xml' itself (or case variants thereof).
* On David Ascher's recommendation: reversed order of 'utime()' andGreg Ward1999-06-081-2/+5
| | | | 'chmod()' in 'copy_file()'.
* Sam's latest versionsGuido van Rossum1999-06-082-87/+109
|
* Skip Montanaro:Guido van Rossum1999-06-081-2/+13
| | | | | | | | | I guess in 1.5.2 a new module, whichdb, was added that attempts to divine the nature of a database file. This module doesn't know anything about Berkeley DB v2 files. In v2, Sleepycat added a 12-byte null pad in front of the old magic numbers (at least for hash and btree files). I've been using v2 for awhile and upgrading to 1.5.2 broke all my anydbm.open calls. I believe the following patch corrects the problem.
* Tim Peters: Taught it more "real Python" rules without slowing itGuido van Rossum1999-06-081-47/+53
| | | | | | | | | | appreciably. Triple-quoted strings no longer confuse it, nor nested classes or defs, nor comments starting in column 1. Chews thru Tkinter.py in < 3 seconds for me; doctest.py no longer confuses it; no longer missing methods in PyShell.py; etc. Also captures defs starting in column 1 now, but ignores them; an interface should be added so that IDLE's class browser can show the top-level functions too.
* Hacked 'set_final_options()' to set (hopefully) appropriate values forGreg Ward1999-06-081-7/+56
| | | | | | | 'install_site_lib' and install_site_platlib' on non-POSIX platforms. Should at least work for NT, as this is adopted from Amos Latteier's NT patches. Also added extensive comments bitching about the inadequacy of the current model, both under POSIX and NT (and probably other) systems.
* Added the 'have_run' dictionary to Distribution, and changedGreg Ward1999-06-081-3/+33
| | | | | | | 'run_command()' to refer to it before attempting to run a command -- that way, command classes can freely invoke other commands without fear of duplicate execution. Beefed up some comments and docstrings.
* Now handles NT, through '_init_nt()' function (courtesy ofGreg Ward1999-06-081-0/+11
| | | | Amos Latteier <amos@aracnet.com>).
* Experimental speedup patch by Tim Peters (please test!):Guido van Rossum1999-06-071-82/+149
| | | | | | | | | It wasn't hard to speed pyclbr by a factor of 3, and I'll attach an experimental patch for that (experimental because barely tested). Uncomment the new "String" stuff and it will deal with strings correctly (pyclbr currently ignores the possibility), but that slows it down a lot. Still faster in the end than current pyclbr, but-- frankly --I'd rather have the dramatic speedup!
* Patch by Jim Fulton: new function parse_qsl(), which is likeGuido van Rossum1999-06-041-13/+44
| | | | | parse_qs() but returns a list of (name, value) pairs -- which is actually more correct. Use this where it makes sense.
* At Jim Fulton's request (actually, as a compromise :-), default theGuido van Rossum1999-06-021-2/+2
| | | | | | content-type to application/x-www-form-urlencoded only when the method is POST. Ditto for when the content-type is unrecognized -- only fall back to urlencoded with POST.
* Andy Dustman notes that I patched the close() call in the wrong place.Guido van Rossum1999-06-011-1/+1
| | | | Here's the correct patch!
* In class TemporaryFileWrapper, don't cache attributes of tpye int --Guido van Rossum1999-06-011-1/+2
| | | | | | these happen to be 'closed' and 'softspace', which may change! Noted by Dave Ascher (with slightly different solution).
* Jack Jansen's patch to support file:///path/file/name URL syntax.Guido van Rossum1999-06-011-0/+5
|
* Greg McFarlane writes: Tkinter.Text.tag_add should take multipleGuido van Rossum1999-06-011-2/+2
| | | | arguments. [Slightly changed from submitted patch.]
* Andy Dustman writes:Guido van Rossum1999-05-211-0/+1
| | | | | | | | | I noticed while watching (with lsof) my forking SocketServer app running that I would get multiple processes listening to the socket. For the most part, this doesn't hurt things, but if you terminate the server, this can prevent it from restarting because it cannot bind to the port due to any running children which also have the socket open. The following one-liner fixes this.
* Map .js to application/x-javascript.Fred Drake1999-05-201-0/+1
|
* POP3.uidl(): Update docstring based on comments from Piers LauderFred Drake1999-05-131-2/+3
| | | | <piers@cs.su.oz.au>.
* Nathan Paul Simons noticed that the grid_remove() method was missing.Guido van Rossum1999-05-051-0/+2
| | | | | (The difference between grid_remove() and grid_forget() is that the former remembers the options for the slave.)
* Regression test for date format code, by Mike Meyer.Guido van Rossum1999-05-031-0/+21
| | | | (I tweaked it slightly so examples are allowed to have no date too.)
* No need to import find(). (Andrew Dalke & kjpylint)Guido van Rossum1999-05-031-1/+1
|
* No need to import os or string. (Andrew Dalke & kjpylint)Guido van Rossum1999-05-031-1/+1
|
* No need to import sys. (Andrew Dalke & kjpylint)Guido van Rossum1999-05-032-2/+1
|