- 22 Haz, 1999 4 kayıt (commit)
-
-
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 7 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>.
-
Fred Drake yazdı
value, based on comments from Tim Peters.
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Guido van Rossum yazdı
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.
-
- 17 Haz, 1999 15 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
the Modules/ directory. Most of the remaining undocumented modules seem to be living there.
-
Guido van Rossum yazdı
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.
-
Fred Drake yazdı
Edited several of the descriptions for English usage and more consistent style.
-
Fred Drake yazdı
side-effect of cmpcache.cmp() using statcache.stat() internally.
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Guido van Rossum yazdı
may raise an exception (when there are no children). Reported by Andy Dustman.
-
Fred Drake yazdı
next Python release.
-
Fred Drake yazdı
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.
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
-
- 16 Haz, 1999 2 kayıt (commit)
-
-
Guido van Rossum yazdı
ExtensionClasses in isinstance() and issubclass(). - abstract instance and class protocols are used *only* in those cases that would generate errors before the patch. That is, there's no penalty for the normal case. - instance protocol: an object smells like an instance if it has a __class__ attribute that smells like a class. - class protocol: an object smells like a class if it has a __bases__ attribute that is a tuple with elements that smell like classes (although not all elements may actually get sniffed ;).
-
Guido van Rossum yazdı
confusing to end users of IDEs.
-