Notice: While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.
...function _PyTime_DoubleToTimet added, to convert a Python timestamp (C double) to platform time_t with some out-of-bounds checking. Declared in new header file timefuncs.h. It would be good to expose some other internal timemodule.c functions there. New public functions PyEval_EvaluateFrame and PyGen_New to expose generator objects. New public functions Py_IncRef() and Py_DecRef(), exposing the functionality of the Py_XINCREF() and Py_XDECREF macros. Useful for runtime dynamic embedding of Pyt...
...definitions or the initializer structure changed. What I really wanted was code that would analyze the shape and members of the initializer, query the class definitions themselves about their members, and then adjust itself to impedance-match the two sets. This kind of thing is called metaclass hacking and is generally considered fearsomely esoteric -- deep black magic. Most object-oriented languages don't support it at all; in those that do (Perl being one), it tends to be a complicated and fra...
...Function objects now have a __module__ attribute that is bound to the name of the module in which the function was defined. This applies for C functions and methods as well as functions and methods defined in Python. This attribute is used by pickle.whichmodule(), which changes the behavior of whichmodule slightly. In Python 2.2 whichmodule() returns "__main__" for functions that are not defined at the top-level of a module (examples: methods, nested functions). Now whichmodule() wi...
...Definition, as established by the Open Source Initiative (see http://www.opensource.org/). Add the following paragraph to the end of the mission statement (after "Encourages and facilitates Python-related research in the public interest."): "Open source" is defined as: freely available technology licensed under terms compatible with Version 1.9 (or later) of the Open Source Definition, as established by the Open Source Initiative (see http://www.opensource.org/). Appro...
If you didn't find what you need, try your search in the Python language documentation.