- 27 Jun, 1999 1 commit
-
-
Fred Drake authored
similar constructs elsewhere (al/AL, gl/GL/DEVICE).
-
- 25 Jun, 1999 18 commits
-
-
Fred Drake authored
Add an index entry.
-
Fred Drake authored
-
Fred Drake authored
to 4.
-
Fred Drake authored
-
Fred Drake authored
additions from Moshe's version. Used my table for describing the chunk format, and added some markup and index entries.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
Break some other cycles too (and destroy the root when done).
-
Guido van Rossum authored
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.
-
Guido van Rossum authored
-
Guido van Rossum authored
Unregister everything at closing. Don't call close() in __del__, rely on explicit call to close().
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Fred Drake authored
Make argument names equal to what is used in the documentation of the file object, since chunks are supposedly file-like.
-
Guido van Rossum authored
I just noticed that the changes below also apply to cmpcache.py, which is virtually identical to cmp.py.
-
Guido van Rossum authored
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.
-
- 24 Jun, 1999 2 commits
-
-
Guido van Rossum authored
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...)
-
Guido van Rossum authored
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]
-
- 23 Jun, 1999 11 commits
-
-
Guido van Rossum authored
be using self.maxdict.
-
Guido van Rossum authored
""" 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).
-
Fred Drake authored
-
Fred Drake authored
-
Fred Drake authored
border() using a table instead of text for ease of comprehension.
-
Fred Drake authored
-
Fred Drake authored
-
Fred Drake authored
"See also" section.
-
Fred Drake authored
-
Fred Drake authored
-
Jack Jansen authored
-
- 22 Jun, 1999 5 commits
-
-
Fred Drake authored
-
Fred Drake authored
-
Fred Drake authored
additional content.
-
Just van Rossum authored
mod from Joe Strout: when quitting, catch errors in window.close() methods and ignore them. Otherwise one can never quit.
-
Guido van Rossum authored
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.]
-
- 21 Jun, 1999 3 commits
-
-
Guido van Rossum authored
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.
-
Fred Drake authored
Documented htmlentitydefs.
-
Fred Drake authored
-