Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b0e8688

Browse files
committed
Remove duplicate entry for PyObject_AsFileDescriptor. (Really, this time.)
1 parent 9afde1c commit b0e8688

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

Doc/c-api/abstract.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -325,14 +325,6 @@ is considered sufficient for this determination.
325325
equivalent of the Python statement ``del o[key]``.
326326

327327

328-
.. cfunction:: int PyObject_AsFileDescriptor(PyObject *o)
329-
330-
Derives a file descriptor from a Python object. If the object is an integer or
331-
long integer, its value is returned. If not, the object's :meth:`fileno` method
332-
is called if it exists; the method must return an integer or long integer, which
333-
is returned as the file descriptor value. Returns ``-1`` on failure.
334-
335-
336328
.. cfunction:: PyObject* PyObject_Dir(PyObject *o)
337329

338330
This is equivalent to the Python expression ``dir(o)``, returning a (possibly

0 commit comments

Comments
 (0)