Barry Warsaw
3ce096459e
Py_UseClassExceptionsFlag is deprecated. We keep the C variable for C
...
API consistency, but nothing sets it or checks it now.
2000-05-02 19:18:59 +00:00
Guido van Rossum
b16d197d66
Marc-Andre Lemburg:
...
Added Py_UnicodeFlag for use by the -U command line option.
2000-05-01 17:55:15 +00:00
Guido van Rossum
eca4784781
Mark Hammond: For Windows debug builds, we now only offer to dump
...
remaining object references if the environment variable PYTHONDUMPREFS
exists. The default behaviour caused problems for background or
otherwise invisible processes that use the debug build of Python.
2000-04-27 23:44:15 +00:00
Jeremy Hylton
4a3dd2dcc2
Fix PR#7 comparisons of recursive objects
...
Note that comparisons of deeply nested objects can still dump core in
extreme cases.
2000-04-14 19:13:24 +00:00
Guido van Rossum
c94044c11d
Marc-Andre Lemburg: add calls to initialize and finalize Unicode and
...
Codec registry.
2000-03-10 23:03:54 +00:00
Guido van Rossum
bffd683f73
The rest of the changes by Trent Mick and Dale Nagata for warning-free
...
compilation on NT Alpha. Mostly added casts etc.
2000-01-20 22:32:56 +00:00
Guido van Rossum
7c85ab829d
Marc-Andre Lemburg discovered that the switch from .pyc to .pyo files,
...
done by _PyImport_Init(), comes to late to affect the import of
exceptions.py by _PyBuiltin_Init_2(). Move _PyImport_Init() up few lines.
1999-07-08 17:26:56 +00:00
Guido van Rossum
b6987b13fe
Alas, get rid of the Win specific hack to ask the user to press Return
...
before exiting when an error happened. This didn't work right when
Python is invoked from a daemon.
1999-04-07 18:32:51 +00:00
Barry Warsaw
3d05b1a0ae
initmain(): Nailed a memory leak. bimod must be DECREF'd!
1999-01-29 21:30:22 +00:00
Barry Warsaw
c80baa3365
err_input(): Nailed a small memory leak. If the error is E_INTR, the
...
v temporary variable was never decref'd. Test this by starting up the
interpreter, hitting C-c, then immediately exiting.
Same potential leak can occur if error is E_NOMEM, since the return is
done in the case block. Added Py_XDECREF(v); to both blocks, just
before the return.
1999-01-27 16:39:40 +00:00
Guido van Rossum
2c1f6be38e
Hack for Windows so that if (1) the exit status is nonzero and (2) we
...
think we have our own DOS box (i.e. we're not started from a command
line shell), we print a message and wait for the user to hit a key
before the DOS box is closed.
The hacky heuristic for determining whether we have our *own* DOS box
(due to Mark Hammond) is to test whether we're on line zero...
1999-01-08 15:56:28 +00:00
Guido van Rossum
2edcf0d71c
Move the prototype for dump_counts() to before where it is used.
...
(This only applies when COUNT_ALLOCS is defined.)
1998-12-15 16:12:00 +00:00
Guido van Rossum
562f5b1480
Support PYTHONOPTIMIZE variable; by Marc Lemburg.
1998-10-07 14:50:42 +00:00
Guido van Rossum
49b560698b
Renamed thread.h to pythread.h.
1998-10-01 20:42:43 +00:00
Guido van Rossum
2dcfc9618d
On second though, NEXITFUNCS should be defined here and not in
...
pystate.h; pystate.h doesn't use it (I thought I wanted to move the
array there but that won't work).
1998-10-01 16:01:57 +00:00
Guido van Rossum
93d27547d0
Remove redundant definition of NEXITFUNCS.
...
(Reported by Jeff Rush.)
1998-09-28 22:15:37 +00:00
Guido van Rossum
53195c1a83
Don't release the interpreter lock around PyParser_ParseFile().
...
It is needed so that tokenizer.c can use PySys_WriteStderr().
1998-08-27 19:14:49 +00:00
Guido van Rossum
0ba353608f
Add DebugBreak() call to Py_FatalError() for Mark Hammond (only on
...
Win32 in Debug mode).
1998-08-13 13:33:16 +00:00
Guido van Rossum
560e8adef7
Translate E_INDENT to the clearest error message I can think of.
1998-04-10 19:43:42 +00:00
Guido van Rossum
bf02fb28d9
Make sure that the message "Error in sys.exitfunc:" goes to sys.stderr
...
and not to C's stderr.
1998-04-03 21:12:12 +00:00
Guido van Rossum
0829c754bb
Fix the handling of errors in Py_FlushLine() in a few places.
...
(Basically, the error is cleared... Like almost everywhere else...)
1998-02-28 04:31:39 +00:00
Guido van Rossum
a61691e4e9
Ehm, three unrelated changes.
...
- Add Py_FrozenFlag, intended to suppress error messages fron
getpath.c in frozen binaries.
- Add Py_GetPythonHome() and Py_SetPythonHome(), intended to allow
embedders to force a different PYTHONHOME.
- Add new interface PyErr_PrintEx(flag); same as PyErr_Print() but
flag determines whether sys.last_* are set or not. PyErr_Print()
now simply calls PyErr_PrintEx(1).
1998-02-06 22:27:24 +00:00
Guido van Rossum
4cc462e85b
It seems obvious that when Py_Finalize() decides that there's nothing
...
to do, it should not call sys.exitfunc either...
1998-01-19 22:00:38 +00:00
Guido van Rossum
1707aad27c
Changed the finalization order again so that the reference count
...
printing (when Py_DEBUG is defined) happens while there's still a
current thread...
1997-12-08 23:43:45 +00:00
Guido van Rossum
ddc3fb5734
Apply str() to sys.ps1 or sys.ps2 before using them as a prompt, so
...
you can assign an object whose str() evaluates to the current
directory (or whatever).
1997-11-25 20:58:13 +00:00