summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 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.)
* Patch by Jim Fulton, who writes:Guido van Rossum1998-10-201-4/+6
| | | | | | | | | | | | | | """ The FieldStorage constructor calls the read_multi method. The read_multi method creates new FieldStorage objects, re-invoking the constructor (on the new objects). The problem is that the 'environ', 'keep_blank_values', and 'strict_parsing' arguments originally passed to the constructor are not propigated to the new object constructors. This causes os.environ to be used, leading to a miss-handling of the parts. I fixed this by passing these arguments to read_multi and then on to the constructor. See the context diff below. """
* Rename 'locals' argument to top-level interact() function to 'local'Guido van Rossum1998-10-191-3/+3
| | | | for b/w compatibility with 1.5.1.
* Fixed a problem where xmllib didn't handle the tagGuido van Rossum1998-10-191-55/+60
| | | | | | | | <sometag attrib=">"> correctly. Also changed comparisons of re matches and searches into explicit comparisons with None. (Sjoerd Mullender)
* The usualGuido van Rossum1998-10-172-1/+22
|
* When run as a script, don't pass a fake __main__ dictionary; use theGuido van Rossum1998-10-151-1/+1
| | | | real one.
* Fix so that after a fork() -- on Unix only -- the template getsGuido van Rossum1998-10-141-3/+9
| | | | recalculated.
* Perhaps a controversial change: when reporting a callback exception,Guido van Rossum1998-10-131-0/+3
| | | | | | | | assign the exception info to sys.last_{type,value,traceback}. That way, an introspective Tkinter app can inspect its own stack trace. (The controversy is that it would keep some objects alive, but that's probably no big deal.)
* Added {xview,yview}_{moveto,scroll} to the Canvas class.Barry Warsaw1998-10-131-0/+8
|
* Ever-so-slight improvementL the patterns to recognize importGuido van Rossum1998-10-131-2/+2
| | | | statements now also stop at ';' (formerly they only stopped at '#').
* Updated listbox methods to Tk 8.0. (Moved some around, addedGuido van Rossum1998-10-131-12/+20
| | | | x/yview_scroll/moveto.)
* When no master widget is specified, use options['parent'] if it exists.Guido van Rossum1998-10-121-0/+2
|
* Only reference Tkinter._default_root when needed.Guido van Rossum1998-10-121-3/+2
|
* Enhancements by Sjoerd Mullender: support forGuido van Rossum1998-10-121-7/+7
| | | | | from a.b import c import a . b
* Add support for dotted module names to readmodule().Guido van Rossum1998-10-121-18/+26
|
* Make mimetypes.guess_type understand data URLs. (Sjoerd Mullender)Guido van Rossum1998-10-121-0/+21
|
* Fix two bugs in the fstat() line, reported by Fredruk Lundh.Guido van Rossum1998-10-071-1/+1
|
* Fix append() calls with more than 1 argument.Guido van Rossum1998-10-071-2/+2
|
* The message "Exception in Tkinter callback" should go to stderr.Guido van Rossum1998-10-061-4/+4
| | | | | | | | | Fix bug in NoDefaultRoot() -- _default_root wasn't declared global; and made it reentrant. Don't set _default_root to whatever master gets passed in to BaseWidget._setup() (only set it when we need to create a new Tk() widget).
* ST_MODE should be ST_MTIME in utime call in copystat. Thanks to Mike Orr.Guido van Rossum1998-10-021-1/+1
|
* Some new blood and some updated versions.Guido van Rossum1998-10-027-14/+1105
|
* New test_long.py from Tim Peters.Guido van Rossum1998-10-022-12/+126
|
* NSEW is also valid for -stickyBarry Warsaw1998-10-011-0/+1
|
* Added NS and EW constants, which are meaningful values for grid'sBarry Warsaw1998-10-011-1/+3
| | | | -sticky option.
* Fix suggested by Sjoerd (long ago!) to get a better error message whenGuido van Rossum1998-09-291-1/+9
| | | | | | | | there's a syntax error. (In particular, display the correct filename). This changes the API: if there's a syntax error, the function now returns normally after dumping the error to sys.stderr. I changed Sjoerd's use of string.join(string.split(...)) with string.replace().
* New version from Piers Lauder, who writes:Guido van Rossum1998-09-281-88/+115
| | | | | | | | | | Added a debug function to replace 'print' statements. Ensured that response attached to 'NO' replies is passed back. added readonly exception. Rearranged method order into types. Ensure select returns a meaningful error on 'NO'. 'NO' returns from authenticate and login raise error with last message, not list.
* Don't set a local variable named __args__; this feature no longerGuido van Rossum1998-09-281-1/+1
| | | | works and Greg Ward just reported a problem it caused...
* Changes by Eric Raymond:Guido van Rossum1998-09-281-14/+32
| | | | | | | | | | | | 1. Generate a correct Content-Length header visible through the info() method if a request to open an FTP URL gets a length in the response to RETR. 2. Take a third argument to urlretrieve() that makes it possible to progress- meter an urlretrieve call (this is what I needed the above change for). See the second patch band below for details. 3. To avoid spurious errors, I commented out the gopher test. The target document no longer exists.
* Updated the docstring and class hierarchy diagramBarry Warsaw1998-09-251-12/+20
|