Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | #16518: Bring error messages in harmony with docs ("bytes-like object") | R David Murray | 2014-10-05 | 1 | -3/+4 |
| | | | | | | | | | | Some time ago we changed the docs to consistently use the term 'bytes-like object' in all the contexts where bytes, bytearray, memoryview, etc are used. This patch (by Ezio Melotti) completes that work by changing the error messages that previously reported that certain types did "not support the buffer interface" to instead say that a bytes-like object is required. (The glossary entry for bytes-like object references the discussion of the buffer protocol in the docs.) | ||||
* | Issue #22518: Fixed integer overflow issues in "backslashreplace", | Serhiy Storchaka | 2014-10-04 | 1 | -2/+8 |
|\ | | | | | | | "xmlcharrefreplace", and "surrogatepass" error handlers. | ||||
| * | Issue #22518: Fixed integer overflow issues in "backslashreplace", | Serhiy Storchaka | 2014-10-04 | 1 | -2/+8 |
| | | | | | | | | "xmlcharrefreplace", and "surrogatepass" error handlers. | ||||
* | | faulthandler: enhance dump_ascii() to escape also non-printable ASCII | Victor Stinner | 2014-10-03 | 1 | -4/+5 |
| | | | | | | | | characters (U+0000..U+001f and U+007f). | ||||
* | | Issue #18711: Add a new `PyErr_FormatV` function, similar to `PyErr_Format` ↵ | Antoine Pitrou | 2014-09-30 | 1 | -10/+15 |
| | | | | | | | | but accepting a `va_list` argument. | ||||
* | | Removed redundant casts to `char *`. | Serhiy Storchaka | 2014-09-28 | 1 | -1/+1 |
| | | | | | | | | Corresponding functions now accept `const char *` (issue #1772673). | ||||
* | | Update importlib.h frozen bytecode (changed due to commit c0ca9d32aed4). | Georg Brandl | 2014-09-24 | 1 | -3817/+3796 |
| | | |||||
* | | Fixed reference leak in the "backslashreplace" error handler. | Serhiy Storchaka | 2014-09-23 | 1 | -1/+3 |
|\ \ | |/ | |||||
| * | Fixed reference leak in the "backslashreplace" error handler. | Serhiy Storchaka | 2014-09-23 | 1 | -1/+3 |
| | | |||||
* | | Closes #11471: avoid generating a JUMP_FORWARD instruction at the end of an ↵ | Antoine Pitrou | 2014-09-18 | 1 | -3/+3 |
| | | | | | | | | | | | | if-block if there is no else-clause. Original patch by Eugene Toder. | ||||
* | | Issue #4180: The warnings registries are now reset when the filters are ↵ | Antoine Pitrou | 2014-09-18 | 1 | -6/+35 |
|\ \ | |/ | | | | | modified. | ||||
| * | Issue #4180: The warnings registries are now reset when the filters are ↵ | Antoine Pitrou | 2014-09-18 | 1 | -6/+35 |
| | | | | | | | | modified. | ||||
* | | Merge fix for issue #22166 from 3.4 | Nick Coghlan | 2014-09-15 | 1 | -0/+26 |
|\ \ | |/ | |||||
| * | Issue #22166: clear codec caches in test_codecs | Nick Coghlan | 2014-09-15 | 1 | -0/+26 |
| | | |||||
* | | Issue #22215: Now ValueError is raised instead of TypeError when str or bytes | Serhiy Storchaka | 2014-09-06 | 2 | -15/+14 |
| | | | | | | | | argument contains not permitted null character or byte. | ||||
* | | Issue #22043: Fix pymonotonic(), use tv_usec=-1 as a marker to skip | Victor Stinner | 2014-09-03 | 1 | -2/+3 |
| | | | | | | | | the monotonic test | ||||
* | | Issue #22043: time.monotonic() is now always available | Victor Stinner | 2014-09-02 | 1 | -0/+175 |
| | | | | | | | | | | threading.Lock.acquire(), threading.RLock.acquire() and socket operations now use a monotonic clock, instead of the system clock, when a timeout is used. | ||||
* | | Issue #22043: Fix _PyTime_gettimeofday() if HAVE_GETTIMEOFDAY | Victor Stinner | 2014-09-02 | 1 | -5/+2 |
| | | | | | | | | Ensure also that the tv_usec field is consistent: in range [0; 999999]. | ||||
* | | (Merge 3.4) Closes #22258: Fix the the internal function set_inheritable() on | Victor Stinner | 2014-09-02 | 1 | -14/+34 |
|\ \ | |/ | | | | | | | | | Illumos. This platform exposes the function ioctl(FIOCLEX), but calling it fails with errno is ENOTTY: "Inappropriate ioctl for device". set_inheritable() now falls back to the slower fcntl() (F_GETFD and then F_SETFD). | ||||
| * | Closes #22258: Fix the the internal function set_inheritable() on Illumos. | Victor Stinner | 2014-09-02 | 1 | -14/+34 |
| | | | | | | | | | | | | This platform exposes the function ioctl(FIOCLEX), but calling it fails with errno is ENOTTY: "Inappropriate ioctl for device". set_inheritable() now falls back to the slower fcntl() (F_GETFD and then F_SETFD). | ||||
* | | Issue #22043: _PyTime_Init() now checks if the system clock works. | Victor Stinner | 2014-08-29 | 2 | -86/+62 |
| | | | | | | | | | | | | | | | | | | Other changes: * The whole _PyTime API is private (not defined if Py_LIMITED_API is set) * _PyTime_gettimeofday_info() also returns -1 on error * Simplify PyTime_gettimeofday(): only use clock_gettime(CLOCK_REALTIME) or gettimeofday() on UNIX. Don't fallback to ftime() or time() anymore. | ||||
* | | Issue #22287: On UNIX, _PyTime_gettimeofday() now uses | Victor Stinner | 2014-08-29 | 1 | -13/+41 |
| | | | | | | | | | | | | clock_gettime(CLOCK_REALTIME) if available. As a side effect, Python now depends on the librt library on Solaris and on Linux (only with glibc older than 2.17). | ||||
* | | Issue #22207: Fix "comparison between signed and unsigned integers" warning in | Victor Stinner | 2014-08-17 | 1 | -8/+8 |
| | | | | | | | | | | test checking for integer overflow on Py_ssize_t type: cast explicitly to size_t. | ||||
* | | Issue #22206: Using pthread, PyThread_create_key() now sets errno to ENOMEM and | Victor Stinner | 2014-08-17 | 1 | -1/+9 |
| | | | | | | | | returns -1 (error) on integer overflow. | ||||
* | | Issue #20184: Add signature introspection for 30 of the builtins | Nick Coghlan | 2014-08-17 | 1 | -373/+1188 |
| | | | | | | | | | | Also adds a test to test_inspect to track progress on builtin introspection support, to ensure it doesn't regress in the future. | ||||
* | | Issue #22156: Fix "comparison between signed and unsigned integers" compiler | Victor Stinner | 2014-08-15 | 5 | -6/+6 |
| | | | | | | | | warnings in the Python/ subdirectory. | ||||
* | | Issue #22193: Added private function _PySys_GetSizeOf() needed to implement | Serhiy Storchaka | 2014-08-14 | 1 | -32/+40 |
|\ \ | |/ | | | | | some __sizeof__() methods. | ||||
| * | Issue #22193: Added private function _PySys_GetSizeOf() needed to implement | Serhiy Storchaka | 2014-08-14 | 1 | -32/+40 |
| | | | | | | | | some __sizeof__() methods. | ||||
* | | Closes #22146: Merge with 3.4 | Zachary Ware | 2014-08-05 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #22146: Fix typo in __build_class__ error message | Zachary Ware | 2014-08-05 | 1 | -1/+1 |
| | | |||||
* | | Issue #18395: Rename ``_Py_char2wchar()`` to :c:func:`Py_DecodeLocale`, rename | Victor Stinner | 2014-08-01 | 2 | -33/+36 |
| | | | | | | | | | | ``_Py_wchar2char()`` to :c:func:`Py_EncodeLocale`, and document these functions. | ||||
* | | Issue #22054: Add os.get_blocking() and os.set_blocking() functions to get and | Victor Stinner | 2014-07-29 | 1 | -0/+53 |
| | | | | | | | | | | set the blocking mode of a file descriptor (False if the O_NONBLOCK flag is set, True otherwise). These functions are not available on Windows. | ||||
* | | Issue #18093: Factor out the programs that embed the runtime | Nick Coghlan | 2014-07-25 | 1 | -0/+1 |
| | | |||||
* | | Issue #16382: Improve exception message of warnings.warn() for bad category. | Berker Peksag | 2014-07-11 | 1 | -6/+7 |
| | | | | | | | | Initial patch by Phil Elson. | ||||
* | | (Merge 3.4) Issue #21925: PyImport_Cleanup(): Remove unused parameter in | Victor Stinner | 2014-07-07 | 1 | -1/+1 |
|\ \ | |/ | | | | | PySys_FormatStderr() call | ||||
| * | Issue #21925: PyImport_Cleanup(): Remove unused parameter in | Victor Stinner | 2014-07-07 | 1 | -1/+1 |
| | | | | | | | | PySys_FormatStderr() call | ||||
* | | Issue #21891: remove extraneous semicolon. | Ned Deily | 2014-06-30 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #21891: remove extraneous semicolon. | Ned Deily | 2014-06-30 | 1 | -1/+1 |
| | | |||||
* | | merge 3.4 | Benjamin Peterson | 2014-06-17 | 1 | -8/+1 |
|\ \ | |/ | |||||
| * | revert tstate_delete_common, since it's pretty much wrong | Benjamin Peterson | 2014-06-17 | 1 | -8/+1 |
| | | |||||
* | | merge 3.4 | Benjamin Peterson | 2014-06-16 | 1 | -3/+2 |
|\ \ | |/ | |||||
| * | remove extra call to tstate_delete_common (merge artifact) | Benjamin Peterson | 2014-06-16 | 1 | -3/+2 |
| | | |||||
* | | merge 3.4 | Benjamin Peterson | 2014-06-16 | 1 | -0/+8 |
|\ \ | |/ | |||||
| * | avoid a deadlock with the interpreter head lock and the GIL during finalization | Benjamin Peterson | 2014-06-16 | 1 | -0/+8 |
| | | |||||
* | | merge 3.4 | Benjamin Peterson | 2014-06-16 | 1 | -0/+7 |
|\ \ | |/ | |||||
| * | check if the thread is finalizing after retaking the GIL | Benjamin Peterson | 2014-06-16 | 1 | -0/+7 |
| | | |||||
* | | Issue #21205: Add a new ``__qualname__`` attribute to generator, the qualified | Victor Stinner | 2014-06-16 | 1 | -8/+22 |
| | | | | | | | | | | | | | | name, and use it in the representation of a generator (``repr(gen)``). The default name of the generator (``__name__`` attribute) is now get from the function instead of the code. Use ``gen.gi_code.co_name`` to get the name of the code. | ||||
* | | Merge with 3.4 | Terry Jan Reedy | 2014-06-16 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #19362: Tweek len() doc and docstring to expand the indicated range of | Terry Jan Reedy | 2014-06-16 | 1 | -1/+1 |
| | | | | | | | | arguments. Original patch by Gareth Rees. | ||||
* | | Fix a parameter name to make sense again | Brett Cannon | 2014-05-30 | 1 | -3178/+3178 |
| | |