]> granicus.if.org Git - python/commitdiff
Add note about fileno not being usable as a normal file descriptor in Windows.
authorBrett Cannon <bcannon@gmail.com>
Tue, 5 Aug 2003 03:51:24 +0000 (03:51 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 5 Aug 2003 03:51:24 +0000 (03:51 +0000)
Doc/lib/libsocket.tex

index 199b97f314d008fee65832e6d13aa3c6405ebbb3..de2f51d89160f156a4fcf132b4284a5ff511dd03 100644 (file)
@@ -480,6 +480,10 @@ This was never intentional and is no longer be available in Python
 \begin{methoddesc}[socket]{fileno}{}
 Return the socket's file descriptor (a small integer).  This is useful
 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}
 
 \begin{methoddesc}[socket]{getpeername}{}