Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 37371:492044034a87 legacy-trunk
Bug #1460564: document that socket.fromfd() duplicates the given
file descriptor.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Sat, 01 Apr 2006 07:33:08 +0000 |
| parents | dd49847a60d3 |
| children | 3c7ea50518be |
line wrap: on
line diff
--- a/Modules/socketmodule.c Sat Apr 01 07:23:08 2006 +0000 +++ b/Modules/socketmodule.c Sat Apr 01 07:33:08 2006 +0000 @@ -3168,7 +3168,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 */ @@ -4052,7 +4053,7 @@ PyModule_AddIntConstant(m, "NETLINK_IP6_FW", NETLINK_IP6_FW); PyModule_AddIntConstant(m, "NETLINK_DNRTMSG", NETLINK_DNRTMSG); PyModule_AddIntConstant(m, "NETLINK_TAPBASE", NETLINK_TAPBASE); -#endif +#endif /* AF_NETLINK */ #ifdef AF_ROUTE /* Alias to emulate 4.4BSD */ PyModule_AddIntConstant(m, "AF_ROUTE", AF_ROUTE);
