- 08 Aug, 1997 3 commits
-
-
Jack Jansen authored
projects unified (as much as possible: PythonCore is still separate).
-
Jack Jansen authored
project files, which have to be cleaned up before checking in, .prj files are CW Pro 1 projects (which are always clean). Prj files are still binhexed, even though they only have a data fork (and, hence, could be checked in in binary mode).
-
Jack Jansen authored
code isn't ideal yet: xxx.Window(1).Paragraph(3).font will only work if all the classes and properties are declared in the same suite, but at least font(Paragraph(3, Window(1))) always works.
-
- 07 Aug, 1997 3 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
under WIN32 -- remove file handler interface, don't use Py_input_hook.
-
Guido van Rossum authored
main_nt.c is gone -- we can use Modules/python.c now. Added Mark Hammond's module msvcrt.c (untested). Added several new symbols.
-
- 06 Aug, 1997 1 commit
-
-
Guido van Rossum authored
-
- 05 Aug, 1997 22 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
Add Py_input_hook (used by _tkinter and perhaps Gist).
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
SystemError: bad argument to internal function caused by comparing NULL pointer default args.
-
Guido van Rossum authored
in Tk.destroy(), reset _default_root to None when it is us.
-
Guido van Rossum authored
Py_DECREF, to reduce the warnings when compiling with reference count debugging on. (There are still warnings for each call to _Py_NewReference -- too bad.)
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
functions.
-
Guido van Rossum authored
scheme based on object's types, have a simple two-phase scheme based on object's *names*: /* To make the execution order of destructors for global objects a bit more predictable, we first zap all objects whose name starts with a single underscore, before we clear the entire dictionary. We zap them by replacing them with None, rather than deleting them from the dictionary, to avoid rehashing the dictionary (to some extent). */
-
Guido van Rossum authored
'Py_Cleanup' back to 'cleanup'.
-
Guido van Rossum authored
-
Guido van Rossum authored
from the interned table. There are references in hard-to-find static variables all over the interpreter, and it's not worth trying to get rid of all those; but "uninterning" isn't fair either and may cause subtle failures later -- so we have to keep them in the interned table. Also get rid of no-longer-needed insert of None in interned dict.
-
Guido van Rossum authored
few percent speed up. Also add PyCFunction_Fini() to discard it.
-
Guido van Rossum authored
no valid directory is passed in. This prevents __del__ to fail when invoked after __builtins__ has already been discarded. Also add PyFrame_Fini() to discard the cache of frames.
-
Guido van Rossum authored
percent speed up. Also add PyMethod_Fini() to discard it.
-
Guido van Rossum authored
In _Py_PrintReferences(), no longer suppress once-referenced string. Add Py_Malloc and friends and PyMem_Malloc and friends (malloc wrappers for third parties).
-
Guido van Rossum authored
-
- 04 Aug, 1997 1 commit
-
-
Guido van Rossum authored
-
- 02 Aug, 1997 10 commits
-
-
Guido van Rossum authored
semantics.
-
Guido van Rossum authored
-
Guido van Rossum authored
Everything should now work again. See the comments for the .h files mass checkin (e.g. pystate.h) for more detail.
-
Guido van Rossum authored
Py_Initmodule(), which is a macro wrapper around it). The return value is now a NULL pointer if the initialization failed. This may make old modules fail with a SEGFAULT, since they don't expect this kind of failure. That's OK, since (a) it "never" happens, and (b) they would fail with a fatal error otherwise, anyway. Tons of extension modules should now check the return value of Py_Initmodule*() -- that's on my TODO list.
-
Guido van Rossum authored
-
Guido van Rossum authored
Reset the SIGINT handler when the finalization is invoked.
-
Guido van Rossum authored
Instead of calling Py_Exit(sts), call Py_Cleanup() and return sts.
-
Guido van Rossum authored
-- the thread state is passed in as an argument and the builtins are a member thereof.
-
Guido van Rossum authored
strings. For use in Py_Finalize() only.
-
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.
-