summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Destroy the tree when closing.Guido van Rossum1999-06-251-1/+2
|
* Add destroy() method to recursively destroy a tree.Guido van Rossum1999-06-251-0/+6
|
* Extend _close() to break cycles.Guido van Rossum1999-06-251-13/+18
| | | | Break some other cycles too (and destroy the root when done).
* Add _close() method that does the actual cleanup (close() asks theGuido van Rossum1999-06-251-10/+26
| | | | | | | | user what they want first if there's unsaved stuff, and may cancel). It closes more than before. Add unload_extensions() method to unload all extensions; called from _close(). It calls an extension's close() method if it has one.
* Add close() method that breaks cycles.Guido van Rossum1999-06-251-0/+8
|
* Add unregister() method.Guido van Rossum1999-06-251-4/+12
| | | | | Unregister everything at closing. Don't call close() in __del__, rely on explicit call to close().
* Add close() method that breaks a cycle.Guido van Rossum1999-06-253-4/+23
|
* 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.
* Clarify the example by explicitly importing the fcntl module -- thisGuido van Rossum1999-06-241-2/+2
| | | | | | | | | avoid being fooled into thinking that fcntl and FCNTL are the same thing -- they aren't! (fcntl is the extension, FCNTL.py is h2py output that defines all the constants). (XXX The example is still weird -- I think there's a more portable way to do locking now. That's for someone else to fix...)
* 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.
* Simplified version of a patch by Chih-Hao Huang, who wrote:Guido van Rossum1999-06-231-2/+3
| | | | | | | | | | | | | | | | | | | """ When there are additional Setup files, specified by -e option of freeze, checkextenstions.py assumes that *.o, *.a, -Lpath, and -Rpath are all relative to where the Setup file is. select() inserts the path to the Setup file to make them absolute. However, the assumption is not true. There are cases that absolute paths are specified for them. The inserted prefix, by select(), results in error. The following fix check for absolute paths. The assumption is: an absolute path begins with either '/' or '$'. In the latter case, it is from the environmental variable. (Variables defined locally in the Setup file have already been handled by expandvars()) """ My version of the patch has been verified by Charles Waldman (a colleague of Chih-Hao).
* Removed tty module entry.Fred Drake1999-06-231-3/+0
|
* Add entries for tty module.Fred Drake1999-06-232-0/+2
|
* Updates from Moshe, again edited by me. Describe the parameters toFred Drake1999-06-231-27/+50
| | | | border() using a table instead of text for ease of comprehension.
* Added "See Also" section for termios module.Fred Drake1999-06-231-0/+9
|
* Various updates.Fred Drake1999-06-231-24/+20
|
* tty module documentation from Moshe, with some editing and an addedFred Drake1999-06-231-0/+36
| | | | "See also" section.
* Added more sections...Fred Drake1999-06-232-0/+4
|
* Two more from Moshe!Fred Drake1999-06-232-0/+219
|
* Drag manager constants.Jack Jansen1999-06-231-0/+59
|
* Make the mode parameter to open() default in the same way as for wave.open().Fred Drake1999-06-222-8/+18
|
* Added entry for the chunk module.Fred Drake1999-06-222-0/+2
|
* New section from Moshe Zadka, modified by FLD for markup, someFred Drake1999-06-221-0/+71
| | | | additional content.
* mod from Joe Strout: when quitting, catch errors in window.close() methods ↵Just van Rossum1999-06-221-1/+4
| | | | and ignore them. Otherwise one can never quit.
* Patch by Tim Peters:Guido van Rossum1999-06-224-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.]
* Patch submitted by Toby Dickenson and approved by Mark Hammond.Guido van Rossum1999-06-211-2/+2
| | | | | | | | | | | | | | | | Toby writes: winmakemakefile.py tries to allow for spaces in the python install path, by adding quotes around the appropriate filenames. It doesn't quite get this correct; sometimes the quotes end up in the middle of the path. Microsoft's NMAKE version 6.0 is happy with this (!!!!) unless there is also a space in the name. I guess most users of freeze on windows do not use the same path as the binary distribution. I've tested the following changes on systems with and without a space in the path.
* Added some "See also" references to htmllib docs.Fred Drake1999-06-211-0/+32
| | | | Documented htmlentitydefs.
* Added entry for curses module.Fred Drake1999-06-211-0/+1
|
* Added entries for four of Moshe's documentation sections.Fred Drake1999-06-211-0/+4
|
* Preliminary documentation for the curses module by Moshe Zadka, withFred Drake1999-06-211-0/+394
| | | | | | | lots of markup fixes and some English nits fixed. Still needs real review. Some of the function signatures used in this module are really bad! (Two leading optional parameters? Ugh!)
* Add warning FreeBSD users of a problem with curses and termcap,Guido van Rossum1999-06-211-0/+9
| | | | submitted by Klaus-Juergen Wolf.
* Fix a markup error.Fred Drake1999-06-211-1/+1
|
* Three more modules documented by Moshe!Fred Drake1999-06-214-0/+197
|
* Initial minimal test program: print information on anything dropped onto PythonJack Jansen1999-06-211-0/+43
| | | | window.
* Print something on stderr in case of exceptions in callback routines.Jack Jansen1999-06-212-6/+18
|
* Drag manager interface (completely untested, so far)Jack Jansen1999-06-215-0/+1447
|
* Greg McFarlane submitted two missing Text methods: mark_next() andGuido van Rossum1999-06-211-0/+4
| | | | mark_previous().
* Added a few minor comments, mostly to discourage documentation ofFred Drake1999-06-181-11/+13
| | | | really old modules that may become obsolete.
* Added paragraph about potential re-initialization of extensionFred Drake1999-06-181-0/+7
| | | | | modules; responding to suggestion by Robin Boerdijk <Robin.Boerdijk@nl.origin-it.com>.
* Further clarfication of the system-dependence of the system() returnFred Drake1999-06-181-1/+3
| | | | value, based on comments from Tim Peters.
* Relocating file to Lib/lib-old.Fred Drake1999-06-181-63/+0
|
* Re-categorize the dump module as obsolete.Fred Drake1999-06-181-3/+3
|
* fpformat has been documented for at least a week now!Fred Drake1999-06-181-5/+0
|
* CRITICAL PATCH!Guido van Rossum1999-06-181-5/+23
| | | | | | | | | | | | | | We occasionally received reports from people getting "invalid tstate" crashes (this is a fatal error in PyThreadState_Delete()). Finally several people were able to reproduce it reliably and Tim Peters discovered that there is a race condition when multiple threads are calling this function without holding the global interpreter lock (the function may be called without holding that). Solved the race condition by adding a lock around the mutating uses of interp->tstate_head. Tim and Jonathan Giddy have run tests that make it likely that this fixes the crashes -- although Tim hasn't heard from the person who reported the original problem.
* # Darn! Local variable l declared but not used in abstract_issubclass().Guido van Rossum1999-06-171-1/+1
|
* Small markup & usage adjustments.Fred Drake1999-06-171-3/+2
|