Barry Warsaw
36b8f945e7
PyErr_Print(): Use PyErr_GivenExceptionMatches() instead of pointer
...
compares to test for SystemExit and SyntaxError.
1997-08-26 18:09:48 +00:00
Guido van Rossum
e3c0d5eb34
Added new Py_IsInitalized() API function to test the 'initialized' flag.
1997-08-22 04:20:13 +00:00
Guido van Rossum
aa61505fd2
Use a counter instead of a Boolean to check for initialized; n calls
...
to Py_Initialize will be undone by n calls to Py_Uninitialize.
1997-08-20 22:40:18 +00:00
Guido van Rossum
cc283f56a7
Merge Py_Cleanup() into Py_Finalize(). Call the various small Fini()
...
functions.
1997-08-05 02:22:03 +00:00
Guido van Rossum
25ce566661
The last of the mass checkins for separate (sub)interpreters.
...
Everything should now work again.
See the comments for the .h files mass checkin (e.g. pystate.h) for
more detail.
1997-08-02 03:10:38 +00:00
Guido van Rossum
ad6dfda9af
Moved some stuff here from main.c (part of a big restructuring - wait
...
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().
1997-07-19 19:17:22 +00:00
Guido van Rossum
296b4751e1
Can't return 0 from void function...
1997-05-23 00:19:20 +00:00
Guido van Rossum
78a1ed3d70
Py_FlushLine and PyFile_WriteString now return error indicators
...
instead of calling PyErr_Clear(). Add checking of those errors.
1997-05-22 22:35:04 +00:00
Guido van Rossum
23c9446d9a
Added a space in an error message
1997-05-22 20:21:30 +00:00
Guido van Rossum
b05a5c7698
Instead of importing graminit.h whenever one of the three grammar 'root'
...
symbols is needed, define these in Python.h with a Py_ prefix.
1997-05-07 17:46:13 +00:00
Guido van Rossum
478e718aca
Keep MS compiler happy: use (int)strlen() when comparing; make sure
...
not to use kill().
1997-05-06 15:24:59 +00:00
Guido van Rossum
a027efa5bf
Massive changes for separate thread state management.
...
All per-thread globals are moved into a struct which is manipulated
separately.
1997-05-05 20:56:21 +00:00
Guido van Rossum
2a7f58de1c
Allow passing a .pyo file.
...
Print correct name in fatal error from PyErr_Print.
1997-04-02 05:28:38 +00:00
Guido van Rossum
82598051e6
Greatly renamed. Not a very thorough job -- I'm going to restructure
...
it anyway.
1997-03-05 00:20:32 +00:00
Guido van Rossum
7433b12a5c
Added new global flag variable Py_InteractiveFlag and new function
...
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.
1997-02-14 19:45:36 +00:00
Guido van Rossum
80bb9655f0
Keep gcc -Wall happy.
1996-12-05 23:27:02 +00:00
Guido van Rossum
d266eb460e
New permission notice, includes CNRI.
1996-10-25 14:44:06 +00:00
Guido van Rossum
9b38a145e2
Rationalized MS ifdefs
1996-09-11 23:12:24 +00:00
Guido van Rossum
ded690fc35
rename printrefs, getobjects to _Py_ prefix
1996-05-24 20:48:31 +00:00
Guido van Rossum
aae0d32f66
Use new names for debug macros. Don't include pythonrun.h.
1996-05-22 16:35:33 +00:00
Guido van Rossum
4f1c59b818
Add'l change for NT (Mark H.).
1996-04-09 02:37:03 +00:00
Jack Jansen
66a8977b0e
Moved mac-specific exit handling to macmain.c
1995-10-27 13:22:14 +00:00
Guido van Rossum
1c45ca310b
keep exitfunc alive while calling it
1995-10-07 19:14:01 +00:00
Guido van Rossum
befa14f1b9
#undef argument, for the Mac
1995-09-18 21:42:42 +00:00
Jack Jansen
21eb0b56a8
mac CW-only fix for messy windows upon exit
1995-07-29 13:55:06 +00:00