]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-95007: Remove the NoneType return converter from Argument Clinic Doc (#95529)
authorNoam Cohen <noam@noam.me>
Mon, 1 Aug 2022 13:07:35 +0000 (16:07 +0300)
committerGitHub <noreply@github.com>
Mon, 1 Aug 2022 13:07:35 +0000 (15:07 +0200)
The converter was removed in 74b5e4ce80858ac5c7d03411cb8cce7e6865f181

Doc/howto/clinic.rst

index 2d368966bf5d3d95fb491628ec1b3281faff6866..d634c4b47db90e5bc605a0579c9b5df5cf0cdad2 100644 (file)
@@ -1070,11 +1070,6 @@ None of these take parameters.  For the first three, return -1 to indicate
 error.  For ``DecodeFSDefault``, the return type is ``const char *``; return a ``NULL``
 pointer to indicate an error.
 
-(There's also an experimental ``NoneType`` converter, which lets you
-return ``Py_None`` on success or ``NULL`` on failure, without having
-to increment the reference count on ``Py_None``.  I'm not sure it adds
-enough clarity to be worth using.)
-
 To see all the return converters Argument Clinic supports, along with
 their parameters (if any),
 just run ``Tools/clinic/clinic.py --converters`` for the full list.