Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #20326: Argument Clinic now uses a simple, unique signature to | Larry Hastings | 2014-01-28 | 1 | -8/+8 |
| | | | | | | | | | | annotate text signatures in docstrings, resulting in fewer false positives. "self" parameters are also explicitly marked, allowing inspect.Signature() to authoritatively detect (and skip) said parameters. Issue #20326: Argument Clinic now generates separate checksums for the input and output sections of the block, allowing external tools to verify that the input has not changed (and thus the output is not out-of-date). | ||||
* | Issue #20189: Four additional builtin types (PyTypeObject, | Larry Hastings | 2014-01-24 | 1 | -6/+6 |
| | | | | | | PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type) have been modified to provide introspection information for builtins. Also: many additional Lib, test suite, and Argument Clinic fixes. | ||||
* | merge 3.3 (#17811) | Benjamin Peterson | 2014-01-19 | 1 | -6/+10 |
|\ | |||||
| * | improve description of buffers argument for readv/writev (closes #17811) | Benjamin Peterson | 2014-01-19 | 1 | -6/+10 |
| | | | | | | | | Patch by Nikolaus Rath. | ||||
| * | fix build when SCHED_SPORADIC is defined (closes #20217) | Benjamin Peterson | 2014-01-10 | 1 | -1/+1 |
| | | |||||
* | | Issue #20226: Major improvements to Argument Clinic. | Larry Hastings | 2014-01-16 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * You may now specify an expression as the default value for a parameter! Example: "sys.maxsize - 1". This support is intentionally quite limited; you may only use values that can be represented as static C values. * Removed "doc_default", simplified support for "c_default" and "py_default". (I'm not sure we still even need "py_default", but I'm leaving it in for now in case a use presents itself.) * Parameter lines support a trailing '\\' as a line continuation character, allowing you to break up long lines. * The argument parsing code generated when supporting optional groups now uses PyTuple_GET_SIZE instead of PyTuple_GetSize, leading to a 850% speedup in parsing. (Just kidding, this is an unmeasurable difference.) * A bugfix for the recent regression where the generated prototype from pydoc for builtins would be littered with unreadable "=<object ...>"" default values for parameters that had no default value. * Converted some asserts into proper failure messages. * Many doc improvements and fixes. | ||||
* | | (Merge 3.3) Issue #20113: os.readv() and os.writev() now raise an OSError | Victor Stinner | 2014-01-08 | 1 | -9/+15 |
|\ \ | |/ | | | | | exception on error instead of returning -1. | ||||
| * | Issue #20113: os.readv() and os.writev() now raise an OSError exception on | Victor Stinner | 2014-01-08 | 1 | -9/+15 |
| | | | | | | | | error instead of returning -1. | ||||
* | | Issue #19273: The marker comments Argument Clinic uses have been changed | Larry Hastings | 2014-01-07 | 1 | -15/+15 |
| | | | | | | | | to improve readability. | ||||
* | | Issue #16136: Remove VMS support and VMS-related code | Christian Heimes | 2013-12-21 | 1 | -23/+0 |
| | | |||||
* | | Fix os.listdir(): _Py_dup() already raises an exception on error, no need to | Victor Stinner | 2013-12-19 | 1 | -4/+2 |
| | | | | | | | | raise a new exception | ||||
* | | Merge: #19970: Fix some comment typos. | R David Murray | 2013-12-14 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | #19970: Fix some comment typos. | R David Murray | 2013-12-14 | 1 | -2/+2 |
| | | | | | | | | Report and patch by Vajrasky Kok. | ||||
* | | - Issue #19736: Add module-level statvfs constants defined for GNU/glibc | doko@ubuntu.com | 2013-12-08 | 1 | -0/+29 |
| | | | | | | | | based systems. | ||||
* | | Issue #19752: Fix "HAVE_DEV_PTMX" implementation of os.openpty() | Victor Stinner | 2013-11-25 | 1 | -1/+5 |
| | | | | | | | | | | | | | | | | Regression introduced by the implementation of the PEP 446 (non-inheritable file descriptors by default). master_fd must be set non-inheritable after the creation of the slave_fd, otherwise grantpt(master_fd) fails with EPERM (errno 13). | ||||
* | | Issue #19636: Fix usage of MAX_PATH in posixmodule.c | Victor Stinner | 2013-11-24 | 1 | -14/+14 |
| | | |||||
* | | Issue #19636: Fix posix__getvolumepathname(), raise an OverflowError if | Victor Stinner | 2013-11-24 | 1 | -5/+14 |
| | | | | | | | | the length doesn't fit in an DWORD | ||||
* | | Issue #19674: inspect.signature() now produces a correct signature | Larry Hastings | 2013-11-23 | 1 | -9/+10 |
| | | | | | | | | for some builtins. | ||||
* | | Issue #19730: Argument Clinic now supports all the existing PyArg | Larry Hastings | 2013-11-23 | 1 | -12/+12 |
| | | | | | | | | | | "format units" as legacy converters, as well as two new features: "self converters" and the "version" directive. | ||||
* | | Issue #19727: os.utime(..., None) is now potentially more precise under Windows. | Antoine Pitrou | 2013-11-23 | 1 | -7/+2 |
| | | |||||
* | | Argument Clinic: rename "self" to "module" for module-level functions. | Larry Hastings | 2013-11-18 | 1 | -15/+15 |
| | | |||||
* | | GetVolumePathNameW: downcast bufsize to DWORD | Christian Heimes | 2013-11-18 | 1 | -1/+2 |
| | | |||||
* | | Issue #19437: Fix parse_envlist() of the posix/nt module, don't call | Victor Stinner | 2013-11-14 | 1 | -1/+3 |
| | | | | | | | | PyMapping_Values() with an exception set, exit immediatly on error. | ||||
* | | Don't use deprecated function PyUnicode_GET_SIZE() | Victor Stinner | 2013-11-13 | 1 | -6/+5 |
| | | | | | | | | Replace it with PyUnicode_GET_LENGTH() or PyUnicode_AsUnicodeAndSize() | ||||
* | | Issue #19437: Fix fsconvert_strdup(), raise a MemoryError on PyMem_Malloc() | Victor Stinner | 2013-11-07 | 1 | -1/+3 |
| | | | | | | | | failure | ||||
* | | Issue #19437: Fix os.statvfs(), handle errors | Victor Stinner | 2013-10-30 | 1 | -0/+4 |
| | | |||||
* | | Issue13234 Allow listdir to handle extended paths on Windows (Patch by ↵ | Tim Golden | 2013-10-25 | 1 | -4/+4 |
| | | | | | | | | Santoso Wijaya) | ||||
* | | Issue4905: use INVALID_FILE_ATTRIBUTES where appropriate. (Patch by Ulrich ↵ | Tim Golden | 2013-10-25 | 1 | -5/+5 |
| | | | | | | | | Eckhardt) | ||||
* | | fix compile issue on windows. path is now a struct ptr | Christian Heimes | 2013-10-19 | 1 | -3/+3 |
| | | |||||
* | | Issue #16612: Add "Argument Clinic", a compile-time preprocessor | Larry Hastings | 2013-10-19 | 1 | -96/+301 |
| | | | | | | | | for C files to generate argument parsing code. (See PEP 436.) | ||||
* | | Issue #19209: Remove import of copyreg from the os module to speed up | Christian Heimes | 2013-10-11 | 1 | -2/+2 |
| | | | | | | | | | | | | interpreter startup. stat_result and statvfs_result are now hard-coded to reside in the os module. The patch is based on Victor Stinner's patch. | ||||
* | | fix a compilation warning in posix_openpty() on "PPC64 AIX 3.x" buildbot | Victor Stinner | 2013-08-27 | 1 | -0/+2 |
| | | |||||
* | | Issue #18571: Implementation of the PEP 446: file descriptors and file handles | Victor Stinner | 2013-08-27 | 1 | -38/+297 |
| | | | | | | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable(). | ||||
* | | remove support for compiling on systems without getcwd() | Benjamin Peterson | 2013-08-24 | 1 | -8/+0 |
| | | | | | | | | | | Do we need a fallback implementation of getcwd() from 1991 that claims to support "really old Unix systems"? I don't think so. | ||||
* | | Issue #18673: Add O_TMPFILE to os module. O_TMPFILE requires Linux kernel | Christian Heimes | 2013-08-16 | 1 | -0/+3 |
| | | | | | | | | 3.11 or newer. It's only defined on system with 3.11 uapi headers, too. | ||||
* | | Issue #18667: Add missing "HAVE_FCHOWNAT" symbol to posix._have_functions. | Larry Hastings | 2013-08-12 | 1 | -0/+4 |
|\ \ | |/ | |||||
| * | Issue #18667: Add missing "HAVE_FCHOWNAT" symbol to posix._have_functions. | Larry Hastings | 2013-08-12 | 1 | -0/+4 |
| | | |||||
* | | Issue #15301: Parsing fd, uid, and gid parameters for builtins | Larry Hastings | 2013-08-08 | 1 | -80/+189 |
| | | | | | | | | in Modules/posixmodule.c is now far more robust. | ||||
* | | Issue #17557: merge from 3.3 | Ned Deily | 2013-08-02 | 1 | -0/+30 |
|\ \ | |/ | |||||
| * | Issue #17557: Fix os.getgroups() to work with the modified behavior of | Ned Deily | 2013-08-02 | 1 | -0/+30 |
| | | | | | | | | getgroups(2) on OS X 10.8. Original patch by Mateusz Lenik. | ||||
| * | Issue #17899: Fix rare file descriptor leak in os.listdir(). | Larry Hastings | 2013-08-02 | 1 | -0/+11 |
| | | | | | | | | (Done as separate patch from trunk as the code has diverged quite a bit.) | ||||
* | | Issue #17899: Fix rare file descriptor leak in os.listdir(). | Larry Hastings | 2013-08-02 | 1 | -2/+12 |
| | | |||||
* | | Issue #9035: os.path.ismount now recognises volumes mounted below | Tim Golden | 2013-08-01 | 1 | -0/+42 |
| | | | | | | | | a drive root on Windows. Original patch by Atsuo Ishimoto. | ||||
* | | Initialize utime with 0. It fixes a couple of compiler warnung: | Christian Heimes | 2013-07-31 | 1 | -0/+1 |
|\ \ | |/ | | | | | warning: 'utime.mtime_ns' may be used uninitialized in this function [-Wmaybe-uninitialized] | ||||
| * | Initialize utime with 0. It fixes a couple of compiler warnung: | Christian Heimes | 2013-07-31 | 1 | -0/+1 |
| | | | | | | | | warning: 'utime.mtime_ns' may be used uninitialized in this function [-Wmaybe-uninitialized] | ||||
* | | Issue #18520: Add a new PyStructSequence_InitType2() function, same than | Victor Stinner | 2013-07-22 | 1 | -8/+16 |
| | | | | | | | | | | | | | | | | PyStructSequence_InitType() except that it has a return value (0 on success, -1 on error). * PyStructSequence_InitType2() now raises MemoryError on memory allocation failure * Fix also some calls to PyDict_SetItemString(): handle error | ||||
* | | (Merge 3.3) Fix posix_chflags(): return_value was uninitialized when | Victor Stinner | 2013-07-18 | 1 | -1/+1 |
|\ \ | |/ | | | | | follow_symlinks=False whereas the fchmodat() function is not avaialble. | ||||
| * | Fix posix_chflags(): return_value was uninitialized when follow_symlinks=False | Victor Stinner | 2013-07-18 | 1 | -1/+1 |
| | | | | | | | | whereas the fchmodat() function is not avaialble. | ||||
* | | Fix a compiler warning in posix_sendfile() on FreeBSD: | Victor Stinner | 2013-07-07 | 1 | -2/+3 |
| | | | | | | | | | | Modules/posixmodule.c: In function 'posix_sendfile': Modules/posixmodule.c:7700: warning: ISO C90 forbids mixed declarations and code | ||||
* | | Issue #18203: Replace malloc() with PyMem_Malloc() in Python modules | Victor Stinner | 2013-07-07 | 1 | -18/+17 |
| | | | | | | | | | | Replace malloc() with PyMem_Malloc() when the GIL is held, or with PyMem_RawMalloc() otherwise. |