diff options
author | Guido van Rossum <guido@python.org> | 1997-07-19 00:02:22 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-07-19 00:02:22 (GMT) |
commit | 0c88e1fd9671f9707a011676a9b075ef90df7059 (patch) | |
tree | 955ca756b46f93f846c08373fb142525607ea273 /Python/pystate.c | |
parent | 618af4b3ef08d5eee9c36fafd4cd57c54573f95e (diff) | |
download | cpython-0c88e1fd9671f9707a011676a9b075ef90df7059.zip cpython-0c88e1fd9671f9707a011676a9b075ef90df7059.tar.gz cpython-0c88e1fd9671f9707a011676a9b075ef90df7059.tar.bz2 |
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 857931e..bf2bdf4 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!!! - -*/ |