[3.13] gh-146056: Fix repr() for lists containing NULLs (GH-146129) (GH-146155) by serhiy-storchaka · Pull Request #146271 · python/cpython
If argument is ``NULL``, return the string ``'<NULL>'``.
.. versionchanged:: 3.4 This function now includes a debug assertion to help ensure that it does not silently discard an active exception.
If argument is ``NULL``, return the string ``'<NULL>'``.
.. index:: string; PyObject_Str (C function)
If argument is ``NULL``, return the string ``'<NULL>'``.
.. versionchanged:: 3.4 This function now includes a debug assertion to help ensure that it does not silently discard an active exception.
If argument is ``NULL``, return the :class:`bytes` object ``b'<NULL>'``.
.. c:function:: int PyObject_IsSubclass(PyObject *derived, PyObject *cls)