mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Add note about fileno not being usable as a normal file descriptor in Windows.
This commit is contained in:
parent
e0c1740bc5
commit
b278ac4e46
1 changed files with 4 additions and 0 deletions
|
@ -480,6 +480,10 @@ This was never intentional and is no longer be available in Python
|
||||||
\begin{methoddesc}[socket]{fileno}{}
|
\begin{methoddesc}[socket]{fileno}{}
|
||||||
Return the socket's file descriptor (a small integer). This is useful
|
Return the socket's file descriptor (a small integer). This is useful
|
||||||
with \function{select.select()}.
|
with \function{select.select()}.
|
||||||
|
|
||||||
|
Under Windows the small integer returned by this method cannot be used where
|
||||||
|
a file descriptor can be used (such as \function{os.fdopen()}). \UNIX{} does
|
||||||
|
not have this limitation.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}[socket]{getpeername}{}
|
\begin{methoddesc}[socket]{getpeername}{}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue