diff Modules/socketmodule.c @ 37372:42312e5f11fd 2.4

Bug #1460564: document that socket.fromfd() duplicates the given file descriptor. (backport from rev. 43523)
author Georg Brandl <georg@python.org>
date Sat, 01 Apr 2006 07:33:22 +0000
parents 4d7653e5cb3b
children 1e12ec49df9b
line wrap: on
line diff
--- a/Modules/socketmodule.c	Sat Apr 01 07:23:12 2006 +0000
+++ b/Modules/socketmodule.c	Sat Apr 01 07:33:22 2006 +0000
@@ -3113,7 +3113,8 @@
 PyDoc_STRVAR(fromfd_doc,
 "fromfd(fd, family, type[, proto]) -> socket object\n\
 \n\
-Create a socket object from the given file descriptor.\n\
+Create a socket object from a duplicate of the given\n\
+file descriptor.\n\
 The remaining arguments are the same as for socket().");
 
 #endif /* NO_DUP */