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.
...macros, while Python extension module init functions will be declared with PyMODINIT_FUNC. DL_EXPORT/DL_IMPORT macros are deprecated. A bug was fixed that could cause COUNT_ALLOCS builds to segfault, or get into infinite loops, when a new-style class got garbage-collected. Unfortunately, to avoid this, the way COUNT_ALLOCS works requires that new-style classes be immortal in COUNT_ALLOCS builds. Note that COUNT_ALLOCS is not enabled by default, in either release or debug builds, and that new-...
...definition" of the rule) represents the "code" in said function. Each parsing function conceptually takes an input string as its argument, and yields one of the following results: A "success" result. This result indicates that the expression can be parsed by that rule and the function may optionally move forward or consume one or more characters of the input string supplied to it. A "failure" result, in which case no input is consumed. Notice that "failure" results do not imply that the progra...
...macro is designed to allow easy initialization of a struct instance with sensible defaults: PyRuntimeConfig runtime_config = PyRuntimeConfig_INIT; use_environment controls the processing of all Python related environment variables. If the flag is true, then PYTHONHASHSEED is processed normally. Otherwise, all Python-specific environment variables are considered undefined (exceptions may be made for some OS specific environment variables, such as those used on Mac OS X to communicate between th...
...macros to functions in the Python C API Aasland, Stinner S 671 Syntax for late-bound function argument defaults Angelico S 674 Disallow using macros as l-values Stinner S 675 Arbitrary Literal String Type Srinivasan, Bleaney S 678 Enriching Exceptions with Notes Hatfield-Dodds S 679 Allow parentheses in assert statements Salgado S 681 Data Class Transforms Bonte, Traut S 683 Immortal Objects, Using a Fixed Refcount Snow, Elizondo S 684 A Per-Interpreter GIL Snow S 685 Comparison of extr...
...macros will be defined to extract the value of fold from PyDateTime_DateTime and PyDateTime_Time objects. int PyDateTime_GET_FOLD(PyDateTime_DateTime *o) Return the value of fold as a C int. int PyDateTime_TIME_GET_FOLD(PyDateTime_Time *o) Return the value of fold as a C int. New constructors will be defined that will take an additional argument to specify the value of fold in the created instance: PyObject* PyDateTime_FromDateAndTimeAndFold( int year, int month, int day, int hour, int ...