Pino Toscano added the comment:
*_MAX constants are usually defined when the system declares that the maximum
limit for that option exist and is already known at compile time.
Python should simply not rely on XATTR_LIST_MAX and XATTR_SIZE_MAX being
defined, but just grow the buffers as needed
New submission from Pino Toscano :
The posix module exposes already quite some O_* constants, but it misses few
POSIX ones (see [1]), but it misses O_EXEC, O_SEARCH, and O_TTY_INIT.
The attached patch adds them.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/fcntl.h.html
New submission from Pino Toscano :
In Lib/test/test_smtplib.py, there's a try ... except which checks the errno of
the IOError exception; though, the errno module is not imported, eventually
causing
| NameError: global name 'errno' is not defined
in such case.
--
co
New submission from Pino Toscano :
In Lib/test/test_subprocess.py there's a check of an errno value done against a
number, instead of using the proper E* constants, which is not portable (POSIX
does not specify any actual value of the E* constants).
This makes the