Source

python-clinic / docs.txt

Full commit


Converting PyArg_ParseTuple Format Units To Argument Clinic

+---------+-------------------------------------------------+
|         |
| ``O!``  | object_converter(type=<type>)                


Converter Function Arguments


``default``
    A string or None.



Converter Default Values

If you use ``None`` as the default value of a parameter,
the C variable will be initialized to ``Py_None``, and
the default value in the docstring will be ``None``.

If you use ``NULL`` as the default value of a parameter,
the C variable will be initialized to ``NULL``, and
the default value in the docstring will be ``None``.