add keyword arguments support to str/unicode encode and decode #6300
[python.git] / Doc / c-api / none.rst
blob1bb603eb56926982720bc71df856f8bda7ed21af
1 .. highlightlang:: c
3 .. _noneobject:
5 The None Object
6 ---------------
8 .. index:: object: None
10 Note that the :ctype:`PyTypeObject` for ``None`` is not directly exposed in the
11 Python/C API.  Since ``None`` is a singleton, testing for object identity (using
12 ``==`` in C) is sufficient. There is no :cfunc:`PyNone_Check` function for the
13 same reason.
16 .. cvar:: PyObject* Py_None
18    The Python ``None`` object, denoting lack of value.  This object has no methods.
19    It needs to be treated just like any other object with respect to reference
20    counts.
23 .. cmacro:: Py_RETURN_NONE
25    Properly handle returning :cdata:`Py_None` from within a C function.
27    .. versionadded:: 2.4