summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Inline PyObject_CallObject (Marc-Andre Lemburg).Guido van Rossum1997-08-302-1/+9
|
* Added os.altsep; this is '/' on DOS/Windows, and None on systems withGuido van Rossum1997-08-292-4/+16
| | | | a sane filename syntax.
* Write out the dynamic OS choice, to avoid exec statements.Guido van Rossum1997-08-291-51/+66
| | | | | Adding support for a new OS is now a bit more work, but I bet that 'dos' or 'nt' will cover most situations...
* Added -X option to suppress default import of site.py. Also split theGuido van Rossum1997-08-291-5/+13
| | | | | usage message in *three* parts under 510 bytes, for low-end ANSI compatibility.
* Added NoSite flag.Guido van Rossum1997-08-291-0/+1
|
* Two independent changes (oops):Guido van Rossum1997-08-291-4/+35
| | | | | | | | | - 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().
* New site.py semantics. Searches inGuido van Rossum1997-08-291-28/+103
| | | | | <*prefix>/lib/python<version>/packages for *.pth files containing directories that are appended to sys.path.
* Swap the sense of the -X option vis-a-vis Py_UseClassExceptionsFlag soBarry Warsaw1997-08-291-2/+3
| | | | | that class based exceptions are enabled by default. -X disables them in favor of the old-style string exceptions.
* Removed obsolete exception PyExc_AccessError.Barry Warsaw1997-08-291-43/+171
| | | | | | | | | | | | | | | | | | | | | 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.
* Added Py_UseClassExceptionsFlag, the variable containing the state ofBarry Warsaw1997-08-291-5/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Added extern definition for -X flag variable.Barry Warsaw1997-08-291-0/+1
|
* New file, which is imported by the built-in module when python isBarry Warsaw1997-08-291-0/+164
| | | | | started with the -X option. This file contains the definitions for the built-in exception classes.
* Expanded r() function to handle class exceptions.Barry Warsaw1997-08-291-1/+6
|
* Parse new command line option -X which enables exception classes.Barry Warsaw1997-08-291-1/+6
|
* Declarations for two phase initialization and finalization functionsBarry Warsaw1997-08-291-2/+4
| | | | for the built-in module.
* Added externs for three new exceptions PyExc_StandardError,Barry Warsaw1997-08-291-1/+7
| | | | | | | PyExc_NumberError, and PyExc_LookupError. Also added extern for pre-instantiated exception instance PyExc_MemoryErrorInst. Removed extern of obsolete exception PyExc_AccessError.
* PyErr_NoMemory(): If the pre-instantiated memory exception is non-nullBarry Warsaw1997-08-291-1/+9
| | | | | | (PyExc_MemoryErrorInst) raise this instead of PyExc_MemoryError. This only happens when exception classes are enabled (e.g. when Python is started with -X).
* Added a new variable TESTPYTHON which contains the path (and args) forBarry Warsaw1997-08-291-2/+3
| | | | the executable to use during regression testing.
* Subtle changes to the AIX shared library things to make them workGuido van Rossum1997-08-292-5/+5
| | | | when building outside the source directory. Courtesy Donn Cave.
* Should remove getbuildno.o/buildno files in clobber/distclean targets.Guido van Rossum1997-08-291-1/+2
|
* Cprrect stuoid tyops -- was comparing variabes with themselves becauseGuido van Rossum1997-08-291-3/+3
| | | | of co/cp mixup.
* eval_code2(), set_exc_info(): Call PyErr_NormalizeException() theBarry Warsaw1997-08-281-2/+2
| | | | | | 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!).
* Added (binaryfunc) casts to function pointers in method lists.Guido van Rossum1997-08-281-4/+4
|
* Some long variables should have been int to match the 'i' format specifier.Guido van Rossum1997-08-281-3/+3
|
* user.py -- when imported, execfile(~/.pythonrc.py).Guido van Rossum1997-08-281-0/+38
|
* Complete log of changes since 1.5a3 at the end.Guido van Rossum1997-08-281-13/+143
|
* Added faqwiz and webchecker.Guido van Rossum1997-08-281-0/+6
|
* Added section about multiple FAQs.Guido van Rossum1997-08-281-2/+22
|
* New installation instructions show how to maintain multiple FAQs.Guido van Rossum1997-08-284-35/+60
| | | | | | | | | 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.
* Removed faqmain.py -- it was an earlier implementation and noGuido van Rossum1997-08-271-858/+0
| | | | longer relevant.
* Referred to POSIX docs as well as to Unix docs.Guido van Rossum1997-08-272-6/+6
|
* Put all prints inside "if verbose:"Jack Jansen1997-08-271-20/+23
|
* Removed debug printJack Jansen1997-08-271-1/+0
|
* Modified for CW Pro projects and new filenamesJack Jansen1997-08-271-68/+46
|
* Added #include <WETabs.h>, which had somehow gone missingJack Jansen1997-08-273-4/+20
|
* Modified for installer and new names of various applets. Also cleanedJack Jansen1997-08-277-139/+115
| | | | up anything else I saw.
* Modified for new scripting supportJack Jansen1997-08-272-70/+266
|
* Moved suites to their own folderJack Jansen1997-08-2716-2066/+6267
|
* Fixed bugs regarding lines starting with '.' (both receiving and sending).Guido van Rossum1997-08-261-4/+25
| | | | Added a minimal test function.
* Ignore whitespace between formats (not internal to a count+format).Guido van Rossum1997-08-263-0/+13
|
* Explicitly close the socket and temp file in URLopener.retrieve(), soGuido van Rossum1997-08-261-0/+2
| | | | | | | | | 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.
* PyErr_Print(): Use PyErr_GivenExceptionMatches() instead of pointerBarry Warsaw1997-08-261-2/+4
| | | | compares to test for SystemExit and SyntaxError.
* Replaced by ReadMeJack Jansen1997-08-261-142/+0
|
* Adapted from ReadMeOrSuffer for the new installerJack Jansen1997-08-261-0/+149
|
* Handle systemclicks ourselves, in stead of passing them to Sioux. ThisJack Jansen1997-08-261-10/+15
| | | | | fixes (or masks?) a bug with Python becoming unreactive during time.sleep() if you have already switched applications before.
* Completed first draft.Guido van Rossum1997-08-264-18/+467
|
* unpack_sequence(): In finally clause, watch out for Py_DECREFBarry Warsaw1997-08-251-2/+2
| | | | evaluating its arguments twice.
* regression test for new sequence unpacking semanticsBarry Warsaw1997-08-251-0/+131
|
* Output for sequence unpacking testBarry Warsaw1997-08-251-0/+1
|
* eval_code2(): collapsed the implementations of UNPACK_TUPLE andBarry Warsaw1997-08-251-33/+74
| | | | | | | | | | | | | | UNPACK_LIST byte codes and added a third code path that allows generalized sequence unpacking. Now both syntaxes: a, b, c = seq [a, b, c] = seq can be used to unpack any sequence with the exact right number of items. unpack_sequence(): out-lined implementation of generalized sequence unpacking. tuple and list unpacking are still inlined.