1. 02 Aug, 1997 7 commits
    • Guido van Rossum's avatar
      Added internal routine PyString_Fini() which deletes all interned · 8cf04764
      Guido van Rossum authored
      strings.  For use in Py_Finalize() only.
      8cf04764
    • Guido van Rossum's avatar
      Mass checkin (more to follow for other directories). · 29e46a9a
      Guido van Rossum authored
      Introduce truly separate (sub)interpreter objects.  For now, these
      must be used by separate threads, created from C.  See Demo/pysvr for
      an example of how to use this.  This also rationalizes Python's
      initialization and finalization behavior:
      
      Py_Initialize() -- initialize the whole interpreter
      Py_Finalize() -- finalize the whole interpreter
      
      tstate = Py_NewInterpreter() -- create a new (sub)interpreter
      Py_EndInterpreter(tstate) -- delete a new (sub)interpreter
      
      There are also new interfaces relating to threads and the interpreter
      lock, which can be used to create new threads, and sometimes have to
      be used to manipulate the interpreter lock when creating or deleting
      sub-interpreters.  These are only defined when WITH_THREAD is defined:
      
      PyEval_AcquireLock() -- acquire the interpreter lock
      PyEval_ReleaseLock() -- release the interpreter lock
      
      PyEval_AcquireThread(tstate) -- acquire the lock and make the thread current
      PyEval_ReleaseThread(tstate) -- release the lock and make NULL current
      
      Other administrative changes:
      
      - The header file bltinmodule.h is deleted.
      
      - The init functions for Import, Sys and Builtin are now internal and
        declared in pythonrun.h.
      
      - Py_Setup() and Py_Cleanup() are no longer declared.
      
      - The interpreter state and thread state structures are now linked
        together in a chain (the chain of interpreters is a static variable
        in pythonrun.c).
      
      - Some members of the interpreter and thread structures have new,
        shorter, more consistent, names.
      
      - Added declarations for _PyImport_{Find,Fixup}Extension() to import.h.
      29e46a9a
    • Guido van Rossum's avatar
    • Guido van Rossum's avatar
    • Guido van Rossum's avatar
      Add a simple way to enable purify; now you can set the Make variable · d0924f45
      Guido van Rossum authored
      PURIFY (e.g. in the Setup file or on the make command line) to point
      to the purify command, to run purify.
      d0924f45
    • Guido van Rossum's avatar
      Print ps (process status) for us when starting a new thread. · c46d22e5
      Guido van Rossum authored
      Even less shuffling of stdout (only at start of new interpreter).
      
      Interact properly with new interpreter initialization conventions
      (must use Py_Initialize/Py_Finalize *and*
      Py_NewInterpreter/Py_EndInterpreter).
      
      Probably more minor changes.
      c46d22e5
    • Guido van Rossum's avatar
      Functionality enhancement: allow other threads to use Tk commands · 35d43377
      Guido van Rossum authored
      while one thread is blocked in mainloop().  Also, handle signals (not
      just interrupts) as soon as they happen.
      
      Cleanup: remove support for Tcl/Tk versions 7.4/4.0.  (I've confirmed
      that it works for 7.5/4.1 and 7.6/4.2, as well as 8.0b2.)
      
      Coding style change: instead of ``func (args)'', write ``func(args)''
      everywhere.
      
      Minor functionality change: use PyArg_ParseTuple everywhere.  This
      should only affect the errors reported for bad argument lists; in
      particular, deletefilehandler() is much clearer about what's going
      on.
      
      (XXX Still to do: Mac and Win ports to 8.0b2.)
      35d43377
  2. 01 Aug, 1997 1 commit
  3. 31 Jul, 1997 2 commits
  4. 30 Jul, 1997 3 commits
  5. 28 Jul, 1997 1 commit
  6. 27 Jul, 1997 1 commit
  7. 26 Jul, 1997 1 commit
  8. 25 Jul, 1997 8 commits
  9. 24 Jul, 1997 1 commit
    • Fred Drake's avatar
      A couple of grammatical nits. · 12d9eac0
      Fred Drake authored
      Re-sequenced the function descriptions so that the formatting is described
      before the assumption is made that the reader has a clue about the formatting.
      
      Moved examples to be closer to the functions being demonstrated.
      
      Added example of saferepr() result.
      12d9eac0
  10. 23 Jul, 1997 1 commit
  11. 21 Jul, 1997 1 commit
  12. 19 Jul, 1997 13 commits