[issue13669] XATTR_SIZE_MAX and XATTR_LIST_MAX undefined on kfreebsd/debian with eglibc

2012-11-06 Thread Pino Toscano
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

[issue14661] posix module: add O_EXEC, O_SEARCH, O_TTY_INIT

2012-04-24 Thread Pino Toscano
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

[issue14442] test_smtplib.py lacks "import errno"

2012-03-29 Thread Pino Toscano
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

[issue9894] wrong errno check

2010-09-18 Thread Pino Toscano
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