- 25 Haz, 1999 8 kayıt (commit)
-
-
Guido van Rossum yazdı
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 yazdı
-
Guido van Rossum yazdı
Unregister everything at closing. Don't call close() in __del__, rely on explicit call to close().
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Fred Drake yazdı
Make argument names equal to what is used in the documentation of the file object, since chunks are supposedly file-like.
-
Guido van Rossum yazdı
I just noticed that the changes below also apply to cmpcache.py, which is virtually identical to cmp.py.
-
Guido van Rossum yazdı
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 Haz, 1999 2 kayıt (commit)
-
-
Guido van Rossum yazdı
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 yazdı
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 Haz, 1999 11 kayıt (commit)
-
-
Guido van Rossum yazdı
be using self.maxdict.
-
Guido van Rossum yazdı
""" 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 yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
border() using a table instead of text for ease of comprehension.
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
"See also" section.
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Jack Jansen yazdı
-
- 22 Haz, 1999 5 kayıt (commit)
-
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
additional content.
-
Just van Rossum yazdı
mod from Joe Strout: when quitting, catch errors in window.close() methods and ignore them. Otherwise one can never quit.
-
Guido van Rossum yazdı
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 Haz, 1999 12 kayıt (commit)
-
-
Guido van Rossum yazdı
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 yazdı
Documented htmlentitydefs.
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
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!)
-
Guido van Rossum yazdı
submitted by Klaus-Juergen Wolf.
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Jack Jansen yazdı
window.
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Guido van Rossum yazdı
mark_previous().
-
- 18 Haz, 1999 2 kayıt (commit)
-
-
Fred Drake yazdı
really old modules that may become obsolete.
-
Fred Drake yazdı
modules; responding to suggestion by Robin Boerdijk <Robin.Boerdijk@nl.origin-it.com>.
-