summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Add calls to self.protocol("WM_DELETE_WINDOW", self.destroy) to the TkGuido van Rossum1999-08-201-0/+2
| | | | | | | | and Toplevel class constructors. This means that if the window manager closes the window, the Python-side Tkinter data structures will be destroyed correctly. (Most apps do this anyway, and it's recommended practice; I see no reason why making it the default behavior could be bad.)
* A nit to make Fred proud.Barry Warsaw1999-08-191-0/+1
|
* Oops, call 'os.path.join()'!Greg Ward1999-08-191-1/+1
|
* New version by Mark-Andre Lemburg (generated by a script, parseentities.py).Guido van Rossum1999-08-191-103/+253
|
* Patches by Michael Reilly to correctly deal with ftp URLs of the formGuido van Rossum1999-08-181-0/+2
| | | | | ftp://user@host//root/path: the double slash in the pathname means to go to the root directory even if the initial directory isn't the root.
* Typo in comment (on Mac, it's the *resource* fork that's not copied,Guido van Rossum1999-08-181-1/+1
| | | | the data fork *is* copied).
* Patches by Michael Reilly to correctly deal with ftp URLs of the formGuido van Rossum1999-08-181-0/+1
| | | | | ftp://user@host//root/path: the double slash in the pathname means to go to the root directory even if the initial directory isn't the root.
* Add Tim Peters' shuffle() algorithm.Guido van Rossum1999-08-181-0/+21
|
* Implements the 'build_ext' command for building C/C++ extension modules.Greg Ward1999-08-141-0/+192
|
* Module to spawn sub-commands in a platform-independent way.Greg Ward1999-08-141-0/+106
| | | | Initial revision only includes support for POSIX-style fork-and-exec.
* Changed to use 'spawn()', now that it exists.Greg Ward1999-08-141-24/+62
| | | | | | | | Added 'verbose' and 'dry_run' parameters to constructor. Changed 'compile()', 'link_*()' to default lists arguments to None rather than empty list. Added implementations of the filename-mangling methods mandated by the CCompiler interface.
* Added 'verbose' and 'dry_run' flags to CCompiler constructor andGreg Ward1999-08-141-15/+64
| | | | | | | | | | | 'new_compiler()' factory function. Added 'runtime_library_dirs' list (for -R linker option) and methods to manipulate it. Deleted some obsolete comments. Added all the filename manglign methods: 'object_filenames()', 'shared_object_filename()', 'library_filename()', 'shared_library_filename()'. Added 'spawn()' method (front end to the "real" spawn).
* Comment tweak.Greg Ward1999-08-141-5/+5
|
* Better detection of bad entries in option table.Greg Ward1999-08-141-3/+11
| | | | Better error messages for bad entries in option table.
* Added DistutilsExecError, DistutilsValueError.Greg Ward1999-08-141-1/+13
|
* Patch by Paul Sokolovsky to support the get() method.Guido van Rossum1999-08-111-0/+5
|
* Allow comment characters (#) to be escaped:Greg Ward1999-08-101-14/+37
| | | | | | | - did away with 'comment_re' option -- it's just not that simple anymore - heavily revised the main logic in 'readline()' to accomodate this Beefed up 'warn()': 'line' can be list or tuple, and 'msg' is automatically converted to a string.
* Added __del__ method to GzipFile class that will flush and close theAndrew M. Kuchling1999-08-101-0/+5
| | | | object, if required.
* Mark Hammond writes:Guido van Rossum1999-07-301-1/+3
| | | | | | | | | | | | | | | | """ If the filename being complained about contains a space, enclose the file-name in quotes. The reason is simply that when I try and parse tabnanny's output, filenames with spaces make it very difficult to determine where the filename stops and the linenumber begins! """ Tim approves. I slightly changed the patch (use 'in' instead of string.find()) and arbitrarily bumped the __version__ variable up to 6.
* Remove some redundant code from Canvas.tag_bind(), which added allGuido van Rossum1999-07-301-11/+2
| | | | | | | | | | bindings to a dictionary _tagcommands which was otherwise unused. (This was checked in accidentally with rev. 1.125 and not deleted with rev. 1.127 when the other half of this code was removed -- although even as originally checked in the _tagcommands variable was never used.) (PR#40, reported by Peter Stoehr)
* Another patch from Andy Dustman:Guido van Rossum1999-07-281-1/+8
| | | | | | | | | | | | | | """ Here's a patch for the ForkingMixIn which will prevent the server from forking itself into the ground. Note: I've tested a very similar patch (subclassed ForkingMixIn) but not actually tested this one. As you might surmise, this was done out of necessity... If the maximum number of children are already running, block while waiting for a child to exit. """ (I added that last sentence as a comment to the code --GvR.)
* getsize(), getatime(), getmtime():Fred Drake1999-07-231-3/+3
| | | | | | | Constants from stat module were imported using "import *"; don't access them via stat.ST_*! Reported by that other vR. ;-)
* Add test case for bug just fixed by Stephen Turner.Guido van Rossum1999-07-131-0/+11
|
* added a test for "To: :" patchBarry Warsaw1999-07-121-0/+7
|
* AddrlistClass.getaddress(): when parsing `:'s, in the loop, watch outBarry Warsaw1999-07-121-1/+2
| | | | | | for gotonext() pushing self.pos past the end of the string. This can happen if the message has a To field like "To: :" and you call msg.getaddrlist('to').
* The first concrete subclass of CCompiler: defines a barebones Unix C compiler.Greg Ward1999-07-101-0/+192
|
* The abstract base class that defines the C/C++ compiler abstraction model.Greg Ward1999-07-101-0/+313
|
* Added a self-berating command relating to installation directories forGreg Ward1999-07-101-0/+8
| | | | module distributions that contain platform-specific files.
* Don't pollute importer's namespace with type objects from types modules.Greg Ward1999-07-101-2/+11
| | | | Added DistutilsPlatformError.
* Patch by Jeffrey Chang to add docstrings everywhere.Guido van Rossum1999-07-091-31/+314
| | | | The text is condensed from the library manual.
* FTP.dir(): Fix typo in docstring.Fred Drake1999-07-071-1/+1
|
* Sjoerd Mullender:Guido van Rossum1999-07-011-1/+1
| | | | | | In splithost, accept empty host part in URLs. This is required for file URLs that can have an empty host part. For such URLs, we should not return the initial 2 slashes as part of the file name.
* Relocating file to Lib/lib-old.Fred Drake1999-07-013-218/+0
|
* Define NotANumber as a subclass of ValueError when using class-basedFred Drake1999-06-291-2/+6
| | | | | | | exceptions. When raising NotANumber, pass the string that failed as the exception value.
* While we're at it, convert to docstrings and set the indentation levelFred Drake1999-06-251-91/+96
| | | | to 4.
* Break some cycles when the widget is destroyed.Guido van Rossum1999-06-251-0/+8
|
* Patch from Sjoerd Mullender:Fred Drake1999-06-251-12/+12
| | | | | Make argument names equal to what is used in the documentation of the file object, since chunks are supposedly file-like.
* Mikael Lyngvig writes:Guido van Rossum1999-06-251-4/+4
| | | | | I just noticed that the changes below also apply to cmpcache.py, which is virtually identical to cmp.py.
* Patch by Mikael Lyngvig:Guido van Rossum1999-06-251-4/+4
| | | | | | | | | | 1. Fix incorrect file open mode on Win32 platforms (use "rb" instead of "r"). 2. Add shallow parameter to cmp.cmp(). If false, deep file comparisons are made. The module should be 100 percent backwards compatible.
* Sjoerd Mullender writes:Guido van Rossum1999-06-241-2/+8
| | | | | | | | | | | Urllib makes the URL of the opened file available through the geturl method of the returned object. For local files, this consists of file: plus the name of the file. This results in an invalid URL if the file name was relative. This patch fixes this so that the returned URL is just a relative URL in that case. When the file name is absolute, the URL returned is of the form file:///absolute/path. [I guess that a URL of the form "file:foo.html" is illegal... GvR]
* Small patch by Tim Peters - it was using self.maxlist when it shouldGuido van Rossum1999-06-231-1/+1
| | | | be using self.maxdict.
* Make the mode parameter to open() default in the same way as for wave.open().Fred Drake1999-06-222-8/+18
|
* Patch by Tim Peters:Guido van Rossum1999-06-221-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a new builtin exception, UnboundLocalError, raised when ceval.c tries to retrieve or delete a local name that isn't bound to a value. Currently raises NameError, which makes this behavior a FAQ since the same error is raised for "missing" global names too: when the user has a global of the same name as the unbound local, NameError makes no sense to them. Even in the absence of shadowing, knowing whether a bogus name is local or global is a real aid to quick understanding. Example: D:\src\PCbuild>type local.py x = 42 def f(): print x x = 13 return x f() D:\src\PCbuild>python local.py Traceback (innermost last): File "local.py", line 8, in ? f() File "local.py", line 4, in f print x UnboundLocalError: x D:\src\PCbuild> Note that UnboundLocalError is a subclass of NameError, for compatibility with existing class-exception code that may be trying to catch this as a NameError. Unfortunately, I see no way to make this wholly compatible with -X (see comments in bltinmodule.c): under -X, [UnboundLocalError is an alias for NameError --GvR]. [The ceval.c patch differs slightly from the second version that Tim submitted; I decided not to raise UnboundLocalError for DELETE_NAME, only for DELETE_LOCAL. DELETE_NAME is only generated at the module level, and since at that level a NameError is raised for referencing an undefined name, it should also be raised for deleting one.]
* Greg McFarlane submitted two missing Text methods: mark_next() andGuido van Rossum1999-06-211-0/+4
| | | | mark_previous().
* Relocating file to Lib/lib-old.Fred Drake1999-06-181-63/+0
|
* 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.)