summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* This hopefully fixes the problem of having to set PATHGuido van Rossum1999-01-042-1/+68
| | | | | | in autoexec.bat in order to find the Tcl DLLs -- Tkinter calls FixTk which will hunt around in a few common places and then set PATH and try again, or else issue a big clarifying error message.
* Added mt_interact() -- multithreaded version of interact().Guido van Rossum1998-12-231-0/+26
| | | | | interact() automatically uses this on Windows (where the single-threaded version doesn't work).
* Patch by Mike Meyer:Guido van Rossum1998-12-231-5/+19
| | | | | | | | Extended the rfc822 parsedate routines to handle the cases they failed on in an archive of ~37,000 messages. I believe the changes are compatible, in that all previously correct parsing are still correct. [I still see problems with some messages, but no showstoppers.]
* Patch by Mike Meyer:Guido van Rossum1998-12-231-4/+35
| | | | | Add a class to mailbox.py for dealing with qmail directory mailboxes. The test code was extended to notice these being used as well.
* Avoid crash in parsedate_tz() on certain invalid dates -- when theGuido van Rossum1998-12-231-1/+3
| | | | | | field assumed to be the time is in fact the year, the resulting list doesn't have enough items, and this isn't checked for. Return None instead.
* Small, and final docstring merge with Dragon's version.Barry Warsaw1998-12-221-1/+5
|
* Add warning to Netrc's docstring that it is obsolete -- use the netrcGuido van Rossum1998-12-221-0/+2
| | | | | module instead. (The main advantage of the latter is that it comes with documentation.)
* New test function by Sjoerd, adding -t option.Guido van Rossum1998-12-221-9/+24
|
* The usual.Guido van Rossum1998-12-226-27/+45
| | | | | | # Message to all python-checkins readers: we have a problem with the # CVS mirroring software. You can't check out the latest changes yet. # We hope to have fixed this by noon EST today.
* Applied Fred's patch to fix the bugs that John Skaller noticed.Greg Ward1998-12-221-6/+14
|
* Adding shlex and netrc by Eric Raymond.Guido van Rossum1998-12-222-0/+212
|
* A few other docstring fixes, most importantly to be a little nicer toBarry Warsaw1998-12-221-54/+59
| | | | Emacs ;-)
* Nothing earthshattering, just some fixes to typos and other formattingBarry Warsaw1998-12-221-50/+53
| | | | bugs in various docstrings.
* Renaming Lib/plat-beos1 to Lib/plat-beos at Chris Herborth's requestGuido van Rossum1998-12-211-133/+0
|
* Marc-Andre Lemburg notes about statparse():Guido van Rossum1998-12-211-1/+1
| | | | | | | | | | | | | | | | | """ The message ID is returned lowercased and there is no way to access the original ID the server sent. Now at least some news servers are very picky about the case of the ID and return errors when fetching articles with mixed case given a lowercased version of the ID. The solution is simple: remove the string.lower() call. """ (I might add that the lowercasing was probably introduced as a result of sloppy copy-and-paste coding; there's a string.lower in a similar piece of code a bit higher in the source, that makes more sense -- it's lowercasing the group name.)
* Add XXX comment about the need to add a dump() method to the TextGuido van Rossum1998-12-211-0/+1
| | | | widget -- no time to do this right now.
* Add XXX comment about a test that doesn't seem right -- no time toGuido van Rossum1998-12-211-0/+1
| | | | explore this now.
* A mod whose author I forget. (I must've mislaid the email. If it'sGuido van Rossum1998-12-211-8/+19
| | | | | | | yours, please let me know for propoer acknowledgement.) This avoids recompiling files that haven't changed; it adds a -f option to force recompilation.
* Sjoerd Mullender:Guido van Rossum1998-12-211-24/+34
| | | | | | | | - Fixed a bug where a syntax error was reported when a document started with white space. (White space at the start of a document is valid if there is no XML declaration.) - Improved the speed quite a bit for documents that don't make use of namespaces.
* Typo discovered by Just.Guido van Rossum1998-12-211-1/+1
|
* Use __stdin__ instead of stdin to derive FileType -- safer againstGuido van Rossum1998-12-191-1/+1
| | | | assignments.
* Fred's sysconfig module.Greg Ward1998-12-181-0/+106
|
* Initial checkin of distutils source files.Greg Ward1998-12-182-0/+301
|
* Sjoerd Mullender writes:Guido van Rossum1998-12-181-62/+121
| | | | | | | Here is my current version of xmllib.py and the documentation. This version has some API changes with respect to the version currently in Python (also the one in 1.5.2a). This version supports XML namespaces.
* Sjoerd Mullender:Guido van Rossum1998-12-181-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | File names with "funny" characters get translated wrong by pathname2url (any variety). E.g. the (Unix) file "/ufs/sjoerd/#tmp" gets translated into "/ufs/sjoerd/#tmp" which, when interpreted as a URL is file "/ufs/sjoerd/" with fragment ID "tmp". Here's an easy fix. (An alternative fix would be to change the various implementations of pathname2url and url2pathname to include calls to quote and unquote. [The main problem is with the normal use of URLs: url = url2pathname(file) transmit url url, tag = splittag(url) urlopen(url) ] In addition, this patch fixes some uses of unquote: - the host part of URLs should be unquoted - the file path in the FTP URL should be unquoted before it is split into components. - because of the latter, I removed all unquoting from ftpwrapper, and moved it to the caller, but that is not essential
* Added a -q ('quiet') option to tabnanny, which causes only the names ofAndrew M. Kuchling1998-12-181-3/+7
| | | | offending files to be printed. Good for emacs `tabnanny.py *.py`
* grid_bbox(): support new Tk API: grid bbox ?column row? ?column2 row2?Barry Warsaw1998-12-151-4/+8
|
* In read_multi, allow a subclass to override the class we instantiateGuido van Rossum1998-12-091-4/+7
| | | | | | when we create a recursive instance, by setting the class variable 'FieldStorageClass' to the desired class. By default, this is set to None, in which case we use self.__class__ (as before).
* In __getslice__, use self.__class__ instead of UserList.Guido van Rossum1998-12-091-1/+1
|
* Sjoerd patches the previous patch:Guido van Rossum1998-12-081-0/+10
| | | | | In literal mode, also don't do anything about entity and character references, or about closing CDATA elements.
* Sjoerd writes:Guido van Rossum1998-12-071-1/+8
| | | | | | When literal mode is entered it should exit automatically when the matching close tag of the last unclosed open tag is encountered. This patch fixes this.
* Patch by Jeff Rush:Guido van Rossum1998-12-071-1/+1
| | | | | | | | | | | | In SimpleHTTPServer.py, the server specified in test() should be BaseHTTPServer.HTTPServer, in case the request handler should want to reference the two attributes added by BaseHTTPServer.server_bind: self.server_name = hostname self.server_port = port There was some Bobo CGI code that wanted access to those attributes.
* Patch by Jeff Rush:Guido van Rossum1998-12-071-1/+1
| | | | | | | | | In CGIHTTPServer.py, the list of acceptable formats is -split- on spaces but -joined- on commas, resulting in double commas in the joined text. It appears harmless to my browser but ought to be fixed anyway. 'A, B, C' -> 'A,', 'B,', 'C,' -> 'A,,B,,C'
* Open the file in binary mode -- so serving images from a Windows boxGuido van Rossum1998-12-071-1/+1
| | | | might actually work.
* Turtle graphicsGuido van Rossum1998-12-042-0/+686
|
* Added NotImplementedError, subclassed from RuntimeErrorBarry Warsaw1998-12-011-2/+10
|
* Patch by Jeff Bauer: a minor change to declare two newGuido van Rossum1998-11-301-12/+11
| | | | | | | | threaded versions of Unix Server classes, using the ThreadingMixIn class: ThreadingUnixStreamServer ThreadingUnixDatagramServer
* Wrong pathname in docstring detected by Fredrik Nehr.Guido van Rossum1998-11-251-1/+1
|
* Bomb on deleting a temporary breakpoint: there's no methodGuido van Rossum1998-11-181-1/+1
| | | | do_delete(); do_clear() was meant. By Greg Ward.
* Accept a non-list sequence for the long options (request by Jack Jansen).Guido van Rossum1998-11-171-39/+54
| | | | | | | | | | | | | Because it might be a common mistake to pass a single string, this situation is treated separately. Since we were making a copy of the longopts list anyway, we now use the list() function -- this made it necessary to change all uses of the local variable (and argument) 'list' to something more meaningful, i.e., 'opts'. Also added docstrings (copied from the library manual) and removed the (now redundant) module comments.
* Fix typo in docstring: client_request should be client_address.Guido van Rossum1998-11-161-1/+1
| | | | Noted by Stefan Witzel.
* Declaring zmod and poly obsolete. They have problems.Guido van Rossum1998-11-022-0/+0
|
* Improvement to the previous fix suggested by Thomas Bellman: if theGuido van Rossum1998-10-241-2/+6
| | | | | unlink() or fdopen() fail, close the file descriptor and re-raise the exception.
* The TemporaryFile() function has a security leak -- because theGuido van Rossum1998-10-241-5/+6
| | | | | | | | | | | | | filenames generated are easily predictable, it is possible to trick an unsuspecting program into overwriting another file by creating a symbolic link with the predicted name. Fix this by using the low-level os.open() function with the O_EXCL flag and mode 0700. On non-Unix platforms, presumably there are no symbolic links so the problem doesn't exist. The explicit test for Unix (posix, actually) makes it possible to change the non-Unix logic to work without a try-except clause. The mktemp() file is as unsafe as ever.
* Moved compile_command() to a file of its own (codeop.py).Guido van Rossum1998-10-221-82/+3
|
* Moved compile_command() here from code.py, so JPython can provide itsGuido van Rossum1998-10-221-0/+86
| | | | own version.
* Jim Fulton writes:Guido van Rossum1998-10-221-13/+16
| | | | | | | | | | | | """ I've attached a long overdue patch to pickle.py to bring it to format 1.3, which is the same as 1.2 except that the binary float format is supported. This is done using the new platform-indepent format features of struct. This patch also gets rid of the undocumented obsolete Pickler dump_special method. """
* Move 'import sys' to top of module, as noted by Tim Peters.Guido van Rossum1998-10-221-1/+1
|
* Piers Lauder writes:Guido van Rossum1998-10-211-1/+1
| | | | | | | | | """ Jochen Hayek has reported a problem with some versions of IMAP4 servers that choose to mix the case in their CAPABILITIES response. The patch below fixes the problem. """
* Use (f1, f2) as cache key instead of f1 + ' ' + f2.Guido van Rossum1998-10-211-1/+1
| | | | | Noted by Fredrik Lundh. (Note -- this module is pretty silly.)