- 29 Agu, 1997 17 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
- Changed semantics for initialized flag (again); forget the ref counting, forget the fatal errors -- redundant calls to Py_Initialize() or Py_Finalize() calls are simply ignored. - Automatically import site.py on initialization, unless a flag is set not to do this by main().
-
Guido van Rossum yazdı
<*prefix>/lib/python<version>/packages for *.pth files containing directories that are appended to sys.path.
-
Barry Warsaw yazdı
that class based exceptions are enabled by default. -X disables them in favor of the old-style string exceptions.
-
Barry Warsaw yazdı
Added PyErr_MemoryErrorInst to hold the pre-instantiated instance when using class based exceptions. Simplified the creation of all built-in exceptions, both class based and string based. Actually, for class based exceptions, the string ones are still created just in case there's a problem creating the class based ones (so you still get *some* exception handling!). Now the init and fini functions run through a list of structure elements, creating the strings (and optionally classes) for every entry. initerrors(): the new base class exceptions StandardError, LookupError, and NumberError are initialized when using string exceptions, to tuples containing the list of derived string exceptions. This GvR trick enables forward compatibility! One bit of nastiness is that the C code has to know the inheritance tree embodied in exceptions.py. Added the two phase init and fini functions.
-
Barry Warsaw yazdı
the -X command line option. Py_Initialize(): Handle the two phase initialization of the built-in module. Py_Finalize(): Handle the two phase finalization of the built-in module. parse_syntax_error(): New function which parses syntax errors that PyErr_Print() will catch. This correctly parses such errors regardless of whether PyExc_SyntaxError is an old-style string exception or new-fangled class exception. PyErr_Print(): Many changes: 1. Normalize the exception. 2. Handle SystemExit exceptions which might be class based. Digs the exit code out of the "code" attribute. String based SystemExit is handled the same as before. 3. Handle SyntaxError exceptions which might be class based. Digs the various information bits out of the instance's attributes (see parse_syntax_error() for details). String based SyntaxError still works too. 4. Don't write the `:' after the exception if the exception is class based and has an empty string str() value.
-
Barry Warsaw yazdı
-
Barry Warsaw yazdı
started with the -X option. This file contains the definitions for the built-in exception classes.
-
Barry Warsaw yazdı
-
Barry Warsaw yazdı
-
Barry Warsaw yazdı
for the built-in module.
-
Barry Warsaw yazdı
PyExc_NumberError, and PyExc_LookupError. Also added extern for pre-instantiated exception instance PyExc_MemoryErrorInst. Removed extern of obsolete exception PyExc_AccessError.
-
Barry Warsaw yazdı
(PyExc_MemoryErrorInst) raise this instead of PyExc_MemoryError. This only happens when exception classes are enabled (e.g. when Python is started with -X).
-
Barry Warsaw yazdı
the executable to use during regression testing.
-
Guido van Rossum yazdı
when building outside the source directory. Courtesy Donn Cave.
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
of co/cp mixup.
-
- 28 Agu, 1997 8 kayıt (commit)
-
-
Barry Warsaw yazdı
former rather than the latter, since PyErr_NormalizeException takes PyObject** and I didn't want to change the interface for set_exc_info (but I did want the changes propagated to eval_code2!).
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
Removed bootstrap script from end of faqwiz.py module. Added instructions to bootstrap script, too. Version bumped to 0.8. Added <html>...</html> feature suggested by Skip Montanaro. Added leading text for Roulette, default to 'Hit Reload ...'. Fix typo in default SRCDIR.
-
- 27 Agu, 1997 9 kayıt (commit)
-
-
Guido van Rossum yazdı
longer relevant.
-
Guido van Rossum yazdı
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Jack Jansen yazdı
up anything else I saw.
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
- 26 Agu, 1997 6 kayıt (commit)
-
-
Guido van Rossum yazdı
Added a minimal test function.
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
that multiple retrievals using the same connection will work. This leaves open the more general problem that after f = urlopen("ftp://...") f must be closed before another retrieval from the same host should be attempted.
-
Barry Warsaw yazdı
compares to test for SystemExit and SyntaxError.
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-