Commit Graph

3 Commits

Author SHA1 Message Date
Julien Schueller cb6e7c542a Python: Drop sys.version_info<3 examples code 2026-07-06 23:50:30 +01:00
William S Fulton 68640c2eb6 Fix Python out typemaps for PyObject * to correctly handle NULL return
NULL is used as the return value for indicating that a Python exception
has been raised. Previously C Python API code could have been called,
but now execution is immediately returned to the Python interpreter.
2025-10-02 21:19:41 +01:00
William S Fulton af6120329c Replace use of tp_name in builtin wrappers for Py_LIMITED_API support
Add SWIG_PyType_GetFullyQualifiedName which is just a wrapper around
PyType_GetFullyQualifiedName, but is only available in python-3.13.
Code up the equivalent for earlier versions - loosely based on the
python-3.13 implementation.

PyType_GetFullyQualifiedName is recommended in PEP-737 for getting the
fully qualified type name of a type.
2025-07-09 19:19:01 +01:00