From 0c88e1fd9671f9707a011676a9b075ef90df7059 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 19 Jul 1997 00:02:22 +0000 Subject: [PATCH] Remove confusing usage comments at end. --- Python/pystate.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/Python/pystate.c b/Python/pystate.c index 857931ea5c0..bf2bdf4a1f3 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!!! - -*/