summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Typo. (Andrew Dalke, without kjpylint)Guido van Rossum1999-05-031-1/+1
|
* No need to import string. (Andrew Dalke & kjpylint)Guido van Rossum1999-05-031-1/+0
|
* No need to import os in test(). (Andrew Dalke & kjpylint)Guido van Rossum1999-05-031-1/+0
|
* Get rid of confusing 'global' statement in global code.Guido van Rossum1999-05-031-1/+0
| | | | (Andrew Dalke & kjpylint)
* No need to import sys or string. (Andrew Dalke & kjpylint)Guido van Rossum1999-05-031-1/+1
|
* Clarify why we define disco. Suggested by Andrew Dalke.Guido van Rossum1999-05-031-1/+1
|
* Clarify why we define error. Suggested by Andrew Dalke.Guido van Rossum1999-05-031-1/+1
|
* No need to import sys or linecache. (Andrew Dalke & kjpylint)Guido van Rossum1999-05-031-2/+0
|
* No need to import gmtime, ctime, asctime.Guido van Rossum1999-05-031-2/+2
| | | | | Make error an alias for ValueError. (Andrew Dalke & kjpylint)
* Clarify why there are dynamic imports in AudioDev().Guido van Rossum1999-05-031-0/+1
| | | | This will enlighten Andrew Dalke; I don't know about kjpylint. :-)
* The _comp_data() function never worked, it contained a reference toGuido van Rossum1999-05-031-1/+1
| | | | undefined 'nframes'. Should be self._nframes. (Andrew Dalke & kjpylint)
* No need to import sys, time, socket or SocketServer. (Andrew Dalke & kjpylint)Guido van Rossum1999-05-031-4/+0
|
* No need to import sys, time, or socket. (Andrew Dalke & kjpylint)Guido van Rossum1999-05-031-3/+0
|
* No need to import rfc822. (Andrew Dalke & kjpylint)Guido van Rossum1999-05-031-1/+0
|
* The case-insensitive _Environ class was lacking a case-insensitive has_key().Guido van Rossum1999-05-031-0/+2
|
* The 'copy_file()' and 'copy_tree()' functions in util.py now haveGreg Ward1999-05-022-20/+38
| | | | | | | meaningful return values: respectively, whether the copy was done, and the list of files that were copied. This meant some trivial changes in core.py as well: the Command methods that mirror 'copy_file()' and 'copy_tree()' have to pass on their return values.
* Rearranged things so that compilation of .py files is the responsibilityGreg Ward1999-05-025-42/+73
| | | | | | | | | of the 'install_py' command rather than 'build_py'. Obviously, this meant that the 'build_py' and 'install_py' modules had to change; less obviously, so did 'install' and 'build', since these higher-level commands must make options available to control the lower-level commands, and some compilation-related options had to migrate with the code.
* Mike Meyer reports a bug in his patch (several months ago) thatGuido van Rossum1999-04-291-0/+1
| | | | accepts long month names. One essential line was missing. Fixed now.
* Message.getheader(): Fixed grammatical error in docstring.Fred Drake1999-04-281-1/+26
| | | | | Message.getheaders(): Method to get list of all values for each instance of a named header. See docstring for more.
* Added test case that includes a comma in the full name. This testsFred Drake1999-04-281-0/+7
| | | | | for an old bug that's been gone a while, but was still documented until a few minutes from now.
* Two changes suggested by Jan Pieter Riegel:Guido van Rossum1999-04-281-1/+4
| | | | | | | | (1) Fix reference to pwd.error to be KeyError -- there is no pwd.error and pwd.getpwnam() raises KeyError on failure. (2) Add cookie support, by placing the 'Cookie:' header, if present, in the HTTP_COOKIE environment variable.
* Cast f.tell() result to int() in _addval(), so it works even onGuido van Rossum1999-04-271-1/+1
| | | | | platforms where tell() returns a long. (Perhaps tell() should be fixed too?) Reported by Greg Humphreys.
* Patch by Per Cederqvist, seemingly approved by The Dragon:Guido van Rossum1999-04-211-3/+6
| | | | | | | Two problems: The SMTPRecipientsRefused class should not inherit SMTPResponseException, since it doesn't provide the smtp_code and smtp_error attributes. My patch for not adding an extra CRLF was apparently forgotten. The enclosed patch fixes these two problems.
* Calling _cleanup() does not guarantee that all processes haveGuido van Rossum1999-04-201-1/+2
| | | | | | terminated; this makes the final assert in the self-test code fail if the parent runs faster than the children. Fix this by calling wait() on the remaining children instead.
* Utility function that yields a properly formatted time string.Guido van Rossum1999-04-191-0/+10
| | | | | (Idea by Jeff Bauer, code by Jeremy, renamed and "Date:" constant stripped from return value by GvR.)
* Relocating file to Lib/lib-tk.Fred Drake1999-04-191-343/+0
|