]> granicus.if.org Git - python/commitdiff
Remove confusing usage comments at end.
authorGuido van Rossum <guido@python.org>
Sat, 19 Jul 1997 00:02:22 +0000 (00:02 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 19 Jul 1997 00:02:22 +0000 (00:02 +0000)
Python/pystate.c

index 857931ea5c0220411d6f9d9b47339e30e2bbc90a..bf2bdf4a1f3e77cd9ed1a8d36aab816412244d4f 100644 (file)
@@ -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!!!
-
-*/