]> granicus.if.org Git - python/commitdiff
Remove duplicate entry for PyObject_AsFileDescriptor. (Really, this time.)
authorGeorg Brandl <georg@python.org>
Thu, 1 Nov 2007 20:55:43 +0000 (20:55 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 1 Nov 2007 20:55:43 +0000 (20:55 +0000)
Doc/c-api/abstract.rst

index b3707fb6a4bb53f184f04267cce3364fc5e55e9f..6953775b9ee1928d767b4376d7b6969042258e55 100644 (file)
@@ -325,14 +325,6 @@ is considered sufficient for this determination.
    equivalent of the Python statement ``del o[key]``.
 
 
-.. cfunction:: int PyObject_AsFileDescriptor(PyObject *o)
-
-   Derives a file descriptor from a Python object.  If the object is an integer or
-   long integer, its value is returned.  If not, the object's :meth:`fileno` method
-   is called if it exists; the method must return an integer or long integer, which
-   is returned as the file descriptor value.  Returns ``-1`` on failure.
-
-
 .. cfunction:: PyObject* PyObject_Dir(PyObject *o)
 
    This is equivalent to the Python expression ``dir(o)``, returning a (possibly