From: Fred Drake Date: Thu, 10 May 2001 15:54:32 +0000 (+0000) Subject: Fix the fcntl() docstring so the user is not mis-directed to the FCNTL X-Git-Tag: v2.2a3~1839 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1d531997a64db69496beb0f69143800c6b8a98ca;p=python Fix the fcntl() docstring so the user is not mis-directed to the FCNTL module for useful constants. --- diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c index f6dd03a461..c45dbe903d 100644 --- a/Modules/fcntlmodule.c +++ b/Modules/fcntlmodule.c @@ -81,13 +81,13 @@ static char fcntl_doc [] = "fcntl(fd, opt, [arg])\n\ \n\ Perform the requested operation on file descriptor fd. The operation\n\ -is defined by op and is operating system dependent. Typically these\n\ -codes can be retrieved from the library module FCNTL. The argument arg\n\ -is optional, and defaults to 0; it may be an int or a string. If arg is\n\ -given as a string, the return value of fcntl is a string of that length,\n\ -containing the resulting value put in the arg buffer by the operating system.\n\ -The length of the arg string is not allowed to exceed 1024 bytes. If the arg\n\ -given is an integer or if none is specified, the result value is an integer\n\ +is defined by op and is operating system dependent. These constants are\n\ +available from the fcntl module. The argument arg is optional, and\n\ +defaults to 0; it may be an int or a string. If arg is given as a string,\n\ +the return value of fcntl is a string of that length, containing the\n\ +resulting value put in the arg buffer by the operating system.The length\n\ +of the arg string is not allowed to exceed 1024 bytes. If the arg given\n\ +is an integer or if none is specified, the result value is an integer\n\ corresponding to the return value of the fcntl call in the C code.";