diff options
| author | Guido van Rossum <guido@python.org> | 1997-07-19 00:02:22 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1997-07-19 00:02:22 +0000 |
| commit | 7d32f2e98f35e3de93a022fa7aecdf768e0d2959 (patch) | |
| tree | be7a282fe00c092da2d5256bb6fcc5eba54fe04e /Python/pystate.c | |
| parent | af898f7eecd3e78734d7d74b9868024bb399a3f5 (diff) | |
| download | cpython-7d32f2e98f35e3de93a022fa7aecdf768e0d2959.tar.gz | |
Remove confusing usage comments at end.
Diffstat (limited to 'Python/pystate.c')
| -rw-r--r-- | Python/pystate.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 857931ea5c..bf2bdf4a1f 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -137,31 +137,3 @@ PyThreadState_Swap(new) current_tstate = new; return old; } - - -/* How should one use this code? - - 1. Standard Python interpreter, assuming no other interpreters or threads: - - PyInterpreterState *interp; - PyThreadState *tstate; - interp = PyInterpreterState_New(); - if (interp == NULL) - Py_FatalError("..."); - tstate = PyThreadState_New(interp); - if (tstate == NULL) - Py_FatalError("..."); - (void) PyThreadState_Swap(tstate); - PyInitialize(); - . - . (use the interpreter here) - . - Py_Cleanup(); - PyThreadState_Delete(tstate); - PyInterpreterState_Delete(interp); - - 2. Totally indepent interpreter invocation in a separate C thread: - - XXX Need to interact with the thread lock nevertheless!!! - -*/ |
