Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Initialize Py_UseClassExceptionsFlag to 1. | Guido van Rossum | 1997-10-03 | 1 | -1/+1 | |
| | ||||||
* | Fix small omission: with all the new code, sys.exit(None) would print | Guido van Rossum | 1997-10-03 | 1 | -0/+2 | |
| | | | | "None"; this should be equivalent to sys.exit(0). | |||||
* | Py_Initialize(): move the call to _PyImport_FixupExtension() to after | Barry Warsaw | 1997-09-18 | 1 | -1/+1 | |
| | | | | | the phase 2 init of the __builtin__ module, so that multiple interpreters will get the right exceptions. | |||||
* | PyErr_Print(): When printing a class exception, try to dig out the | Barry Warsaw | 1997-09-16 | 1 | -6/+21 | |
| | | | | | __module__ string and if found, print <module>.<class>, unless <module> == "exceptions". | |||||
* | Fixed some details of printing the str() of an exception. This fixes | Guido van Rossum | 1997-09-05 | 1 | -2/+6 | |
| | | | | | a core dump when __str__() returns a non-string, and plugs a memory leak as well: the result of PyObject_Str() was never DECREFed. | |||||
* | Two independent changes (oops): | Guido van Rossum | 1997-08-29 | 1 | -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(). | |||||
* | Added Py_UseClassExceptionsFlag, the variable containing the state of | Barry Warsaw | 1997-08-29 | 1 | -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. | |||||
* | PyErr_Print(): Use PyErr_GivenExceptionMatches() instead of pointer | Barry Warsaw | 1997-08-26 | 1 | -2/+4 | |
| | | | | compares to test for SystemExit and SyntaxError. | |||||
* | Added new Py_IsInitalized() API function to test the 'initialized' flag. | Guido van Rossum | 1997-08-22 | 1 | -0/+8 | |
| | ||||||
* | Use a counter instead of a Boolean to check for initialized; n calls | Guido van Rossum | 1997-08-20 | 1 | -5/+5 | |
| | | | | to Py_Initialize will be undone by n calls to Py_Uninitialize. | |||||
* | Merge Py_Cleanup() into Py_Finalize(). Call the various small Fini() | Guido van Rossum | 1997-08-05 | 1 | -36/+43 | |
| | | | | functions. | |||||
* | The last of the mass checkins for separate (sub)interpreters. | Guido van Rossum | 1997-08-02 | 1 | -59/+193 | |
| | | | | | | | Everything should now work again. See the comments for the .h files mass checkin (e.g. pystate.h) for more detail. | |||||
* | Moved some stuff here from main.c (part of a big restructuring - wait | Guido van Rossum | 1997-07-19 | 1 | -1/+26 | |
| | | | | | | | | | | | | | for more!). - The global flags that can be set from environment variables are now set in Py_Initialize (except the silly Py_SuppressPrint, which no longer exists). This saves duplicate code in frozenmain.c and main.c. - Py_GetProgramName() is now here; added Py_SetProgramName(). An embedding program should no longer provide Py_GetProgramName(), instead it should call Py_SetProgramName() *before* calling Py_Initialize(). | |||||
* | Can't return 0 from void function... | Guido van Rossum | 1997-05-23 | 1 | -1/+1 | |
| | ||||||
* | Py_FlushLine and PyFile_WriteString now return error indicators | Guido van Rossum | 1997-05-22 | 1 | -30/+41 | |
| | | | | instead of calling PyErr_Clear(). Add checking of those errors. | |||||
* | Added a space in an error message | Guido van Rossum | 1997-05-22 | 1 | -1/+1 | |
| | ||||||
* | Instead of importing graminit.h whenever one of the three grammar 'root' | Guido van Rossum | 1997-05-07 | 1 | -4/+3 | |
| | | | | symbols is needed, define these in Python.h with a Py_ prefix. | |||||
* | Keep MS compiler happy: use (int)strlen() when comparing; make sure | Guido van Rossum | 1997-05-06 | 1 | -2/+8 | |
| | | | | not to use kill(). | |||||
* | Massive changes for separate thread state management. | Guido van Rossum | 1997-05-05 | 1 | -8/+42 | |
| | | | | | All per-thread globals are moved into a struct which is manipulated separately. | |||||
* | Allow passing a .pyo file. | Guido van Rossum | 1997-04-02 | 1 | -5/+8 | |
| | | | | Print correct name in fatal error from PyErr_Print. | |||||
* | Greatly renamed. Not a very thorough job -- I'm going to restructure | Guido van Rossum | 1997-03-05 | 1 | -210/+211 | |
| | | | | it anyway. | |||||
* | Added new global flag variable Py_InteractiveFlag and new function | Guido van Rossum | 1997-02-14 | 1 | -1/+22 | |
| | | | | | | | Py_FdIsInteractive(). The flag is supposed to be set by the -i command line option. The function is supposed to be called instead of isatty(). This is used for Lee Busby's wish #1, to have an option that pretends stdin is interactive even when it really isn't. | |||||
* | Keep gcc -Wall happy. | Guido van Rossum | 1996-12-05 | 1 | -0/+4 | |
| | ||||||
* | New permission notice, includes CNRI. | Guido van Rossum | 1996-10-25 | 1 | -13/+20 | |
| | ||||||
* | Rationalized MS ifdefs | Guido van Rossum | 1996-09-11 | 1 | -2/+2 | |
| | ||||||
* | rename printrefs, getobjects to _Py_ prefix | Guido van Rossum | 1996-05-24 | 1 | -1/+1 | |
| | ||||||
* | Use new names for debug macros. Don't include pythonrun.h. | Guido van Rossum | 1996-05-22 | 1 | -6/+5 | |
| | ||||||
* | Add'l change for NT (Mark H.). | Guido van Rossum | 1996-04-09 | 1 | -0/+1 | |
| | ||||||
* | Moved mac-specific exit handling to macmain.c | Jack Jansen | 1995-10-27 | 1 | -21/+4 | |
| | ||||||
* | keep exitfunc alive while calling it | Guido van Rossum | 1995-10-07 | 1 | -0/+2 | |
| | ||||||
* | #undef argument, for the Mac | Guido van Rossum | 1995-09-18 | 1 | -0/+1 | |
| | ||||||
* | mac CW-only fix for messy windows upon exit | Jack Jansen | 1995-07-29 | 1 | -1/+1 | |
| | ||||||
* | keyword arguments and faster calls | Guido van Rossum | 1995-07-18 | 1 | -10/+3 | |
| | ||||||
* | flush stdout before writing to stderr in print_error() | Guido van Rossum | 1995-03-30 | 1 | -0/+1 | |
| | ||||||
* | fix dusty debugging macros | Guido van Rossum | 1995-03-29 | 1 | -2/+2 | |
| | ||||||
* | In NT, write fatal() msg to debugging device | Guido van Rossum | 1995-03-14 | 1 | -0/+10 | |
| | ||||||
* | mac changes: | Jack Jansen | 1995-02-13 | 1 | -0/+8 | |
| | | | | | | - Assume files of types 'PYC ' and 'APPL' are compiled python code - For mwerks, show status line when program has terminated while keeping window open. | |||||
* | print class name for exceptions that are classes | Guido van Rossum | 1995-02-07 | 1 | -2/+14 | |
| | ||||||
* | Under CodeWarrior, make the window go away on exit(0) | Jack Jansen | 1995-02-02 | 1 | -0/+11 | |
| | ||||||
* | Think C mod to suppress pausing at normal exit | Guido van Rossum | 1995-01-30 | 1 | -0/+8 | |
| | ||||||
* | make call_pyc_file static | Guido van Rossum | 1995-01-26 | 1 | -1/+4 | |
| | ||||||
* | use getbuiltins() everywhere, it defaults to getbuiltidict() | Guido van Rossum | 1995-01-12 | 1 | -1/+1 | |
| | ||||||
* | __builtins__ mods (and sys_checkinterval for ceval.c) | Guido van Rossum | 1995-01-09 | 1 | -0/+20 | |
| | ||||||
* | Added 1995 to copyright message. | Guido van Rossum | 1995-01-04 | 1 | -5/+6 | |
| | | | | | | bltinmodule.c: fixed coerce() nightmare in ternary pow(). modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject(). pythonrun.c: move flushline() into and around print_error(). | |||||
* | Lots of changes, most minor (fatal() instead of abort(), use of | Guido van Rossum | 1995-01-02 | 1 | -8/+7 | |
| | | | | | | err_fetch/err_restore and so on). But... NOTE: import.c has been rewritten and all the DL stuff is now in the new file importdl.c. | |||||
* | Removed extraneous fclose() in case of .pyc file argument | Jack Jansen | 1994-12-14 | 1 | -1/+1 | |
| | ||||||
* | * Python/pythonrun.c: add string "Python" to fatal error message | Guido van Rossum | 1994-09-29 | 1 | -1/+1 | |
| | ||||||
* | * Python/pythonrun.c (print_error): print only last line of | Guido van Rossum | 1994-09-19 | 1 | -0/+12 | |
| | | | | multi-line source line | |||||
* | * Import/pythonrun.h, Python/{import,pythonrun}.c, | Guido van Rossum | 1994-09-14 | 1 | -1/+47 | |
| | | | | | | mac/macsetfiletype.c: changes by Jack to execute .pyc file passed as command line argument. On the Mac .pyc files are given a special type so they can be double-clicked | |||||
* | added Py_AtExit() -- register cleanup functions for C modules | Guido van Rossum | 1994-09-07 | 1 | -0/+16 | |
| |