summaryrefslogtreecommitdiffstats
path: root/Include
Commit message (Collapse)AuthorAgeFilesLines
* 3.6.8finalv3.6.8Ned Deily2018-12-231-3/+3
|
* bpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x03060000`. ↵Miss Islington (bot)2018-12-201-0/+2
| | | | | | | (GH-10620) (GH-11269) (cherry picked from commit 3e8f962e63c2f929604443531a9a3aced242f3e8) Co-authored-by: Arthur Neufeld <aneufeld@seinesoftware.ca>
* Post release bumpNed Deily2018-12-121-1/+1
|
* 3.6.8rc1v3.6.8rc1Ned Deily2018-12-111-4/+4
|
* bpo-35444: Fix error handling when fail to look up builtin "getattr". ↵Miss Islington (bot)2018-12-111-1/+3
| | | | | | | | (GH-11047) (GH-11107) (GH-11108) (cherry picked from commit bb86bf4c4eaa30b1f5192dab9f389ce0bb61114d) (cherry picked from commit 3cae16d2e98ffaa89ddd311df70a857dfaff4020) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) (GH-10718) ↵Victor Stinner2018-11-261-3/+3
| | | | | | | | | | | | | (GH-10720) Fix str.format(), float.__format__() and complex.__format__() methods for non-ASCII decimal point when using the "n" formatter. Rewrite _PyUnicode_InsertThousandsGrouping(): it now requires a _PyUnicodeWriter object for the buffer and a Python str object for digits. (cherry picked from commit 59423e3ddd736387cef8f7632c71954c1859bed0) (cherry picked from commit 6f5fa1b4be735159e964906ab608dc467476e47c)
* bpo-9263: _PyObject_Dump() detects freed memory (GH-10061) (GH-10662) (GH-10663)Victor Stinner2018-11-222-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | * bpo-9263: _PyObject_Dump() detects freed memory (GH-10061) _PyObject_Dump() now uses an heuristic to check if the object memory has been freed: log "<freed object>" in that case. The heuristic rely on the debug hooks on Python memory allocators which fills the memory with DEADBYTE (0xDB) when memory is deallocated. Use PYTHONMALLOC=debug to always enable these debug hooks. (cherry picked from commit 82af0b63b07aa8d92b50098e382b458143cfc677) * bpo-9263: Fix _PyObject_Dump() for freed object (#10661) If _PyObject_Dump() detects that the object is freed, don't try to dump it (exit immediately). Enhance also _PyObject_IsFreed(): it now detects if the pointer itself looks like freed memory. (cherry picked from commit 2cf5d32fd9e61488e8b0be55a2e92a752ba8b06b) (cherry picked from commit 95036ea25d47f0081bda2ba96ea327f3375cb6a4)
* bpo-35214: Add _Py_ prefix to MEMORY_SANITIZER def. (GH-10503)Miss Islington (bot)2018-11-131-2/+2
| | | | | | | Rename our new MEMORY_SANITIZER define to _Py_MEMORY_SANITIZER. Project based C Preprocessor namespacing at its finest. :P (cherry picked from commit 3015fb8ce4d25603434b9b44bb7effb98a481532) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.6] bpo-35214: Initial clang MemorySanitizer support (GH-10479) (GH-10493)Gregory P. Smith2018-11-131-0/+9
| | | | | | | | | | | | | | | | Adds configure flags for msan and ubsan builds to make it easier to enable. These also encode the detail that address sanitizer and memory sanitizer should disable pymalloc. Define MEMORY_SANITIZER when appropriate at build time and adds workarounds to existing code to mark things as initialized where the sanitizer is otherwise unable to determine that. This lets our build succeed under the memory sanitizer. not all tests pass without sanitizer failures yet but we're in pretty good shape after this. (cherry picked from commit 1584a0081500d35dc93ff88e5836df35faf3e3e2) Contributed by Gregory P. Smith [Google LLC] Also includes a whitespace fix from make patchcheck to _posixsubprocess.c - unrelated to the main change that makes the CI happy so I'm just doing it now rather than creating a separate PR.
* [3.6] bpo-35147: Fix _Py_NO_RETURN for GCC (GH-10300) (GH-10302)Alexey Izbyshev2018-11-021-3/+3
| | | | | Use `__GNUC__` instead of non-existing `__GNUC_MAJOR__`. (cherry picked from commit e2ed5adcb5db2d70cfa72da1ba8446f7aa9e05cd)
* Post release bumpNed Deily2018-10-201-1/+1
|
* Merge tag 'v3.6.7' into 3.6Ned Deily2018-10-201-3/+3
|\
| * 3.6.7finalv3.6.7Ned Deily2018-10-201-3/+3
| |
* | [3.6] bpo-24658: Fix read/write greater than 2 GiB on macOS (GH-1705) (GH-9937)Stéphane Wirtel2018-10-171-0/+13
| | | | | | | | | | On macOS, fix reading from and writing into a file with a size larger than 2 GiB. (cherry picked from commit 74a8b6ea7e0a8508b13a1c75ec9b91febd8b5557)
* | Post release bumpNed Deily2018-10-131-1/+1
|/
* 3.6.7rc2v3.6.7rc2Ned Deily2018-10-131-2/+2
|
* Post release bumpNed Deily2018-09-271-1/+1
|
* 3.6.7rc1v3.6.7rc1Ned Deily2018-09-261-4/+4
|
* bpo-34623: Use XML_SetHashSalt in _elementtree (GH-9146)Miss Islington (bot)2018-09-181-1/+3
| | | | | | | | | | | The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat's default CPRNG. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623 (cherry picked from commit cb5778f00ce48631c7140f33ba242496aaf7102b) Co-authored-by: Christian Heimes <christian@python.org>
* start 3.6.6+Ned Deily2018-06-271-1/+1
|
* 3.6.6 finalv3.6.6Ned Deily2018-06-261-3/+3
|
* 3.6.6rc1v3.6.6rc1Ned Deily2018-06-121-4/+4
|
* Merge tag 'v3.6.5' into 3.6Ned Deily2018-03-281-2/+2
|\ | | | | | | Python 3.6.5
| * 3.6.5finalv3.6.5Ned Deily2018-03-281-3/+3
| |
* | on to 3.6.6Ned Deily2018-03-141-1/+1
|/
* 3.6.5rc1v3.6.5rc1Ned Deily2018-03-141-4/+4
|
* Fix typo in Include/objimpl.h, the word "has" was missing (GH-5568) (GH-5570)Miss Islington (bot)2018-02-121-1/+1
| | | | | | It now reads: ...be aware that Python has no control over... (cherry picked from commit 517da1e58f4c489d4b31579852cde5f7113da08e) Co-authored-by: Alexey <forestbiiird@gmail.com>
* bpo-32777: Fix _Py_set_inheritable async-safety in subprocess (GH-5560) ↵Miss Islington (bot)2018-02-061-0/+3
| | | | | | | | | | | | (GH-5563) Fix a rare but potential pre-exec child process deadlock in subprocess on POSIX systems when marking file descriptors inheritable on exec in the child process. This bug appears to have been introduced in 3.4 with the inheritable file descriptors support. This also changes Python/fileutils.c `set_inheritable` to use the "slow" two `fcntl` syscall path instead of the "fast" single `ioctl` syscall path when asked to be async signal safe (by way of being asked not to raise exceptions). `ioctl` is not a POSIX async-signal-safe approved function. ref: http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html (cherry picked from commit c1e46e94de38a92f98736af9a42d89c3975a9919) Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com>
* bpo-32635: Fix a segfault when importing the crypt module with libxcrypt. ↵Miss Islington (bot)2018-01-241-0/+3
| | | | | | | | (GH-5284) (#5296) glibc is deprecating libcrypt in favor of libxcrypt, however python assumes that crypt.h will always be included. This change makes the header inclusion explicit when libxcrypt is present on the system. (cherry picked from commit e768c86ef442ef89004089a8a34ce5909ffb90f2)
* [3.6] bpo-32555: Fix locale encodings (#5193)Victor Stinner2018-01-151-0/+10
| | | | | | | | | | | | | | | | | On FreeBSD and Solaris, os.strerror() now always decode the byte string from the current locale encoding, rather than using ASCII/surrogateescape in some cases. Changes: * Add _Py_DecodeLocaleEx() and _Py_EncodeLocaleEx() which has an additional current_locale parameter. * PyUnicode_DecodeLocale(), PyUnicode_DecodeLocaleAndSize() and * PyUnicode_EncodeLocale() now always use the current locale * encoding, instead of using Py_DecodeLocale()/Py_EncodeLocale(). * Document encoding in Py_DecodeLocale() and Py_EncodeLocale() documentations. * Add USE_FORCE_ASCII define to not define decode_ascii_surrogateescape() on Android.
* [3.6] bpo-31900: Fix localeconv() encoding for LC_NUMERIC (#4174) (#5192)Victor Stinner2018-01-151-0/+5
| | | | | | | | | | * Add _Py_GetLocaleconvNumeric() function: decode decimal_point and thousands_sep fields of localeconv() from the LC_NUMERIC encoding, rather than decoding from the LC_CTYPE encoding. * Modify locale.localeconv() and "n" formatter of str.format() (for int, float and complex to use _Py_GetLocaleconvNumeric() internally. (cherry picked from commit cb064fc2321ce8673fe365e9ef60445a27657f54)
* bpo-29084: Exclude C API for OrderedDict from the limited C API. (GH-4900) ↵Miss Islington (bot)2017-12-251-4/+1
| | | | | (#5007) (cherry picked from commit 1b3029ac8370ac76fa9571aef540e10aed0667ff)
* 3.6.4+Ned Deily2017-12-191-1/+1
|
* Update to 3.6.4v3.6.4Ned Deily2017-12-191-3/+3
|
* Bump to 3.6.4rc1v3.6.4rc1Ned Deily2017-12-051-4/+4
|
* Correct the location of a function mentioned in a comment (GH-4327)Miss Islington (bot)2017-11-091-1/+1
| | | (cherry picked from commit 01ae58d44622a37304c74b2d8ed32e97a7fe1969)
* bpo-25720: Fix the method for checking pad state of curses WINDOW (GH-4164) ↵Miss Islington (bot)2017-11-011-7/+12
| | | | | | | | | | | (#4212) Modify the code to use ncurses is_pad() instead of checking WINDOW _flags field. If your platform does not provide the is_pad(), the existing way that checks the field will be enabled. Note: This change does not drop support for platforms where do not have both WINDOW _flags field and is_pad(). (cherry picked from commit 8bc7d63560024681dce9f40445f2877b2987e92c)
* bpo-31891: Fix building the curses module on NetBSD. (GH-4165) (#4189)Miss Islington (bot)2017-10-311-10/+6
| | | (cherry picked from commit baac01e629d90f63dfde6b5cc433f4bc65c5feeb)
* [3.6] bpo-30697: Fix PyErr_NormalizeException() when no memory (GH-2327). ↵xdegaye2017-10-261-2/+0
| | | | | (#4135) (cherry picked from commit 56d1f5ca32892c7643eb8cee49c40c1644f1abfe)
* Fix trailing whitespaces in C and Python files. (#4131)Serhiy Storchaka2017-10-261-2/+2
|
* [3.6] bpo-31786: Make functions in the select module blocking when timeout ↵Pablo Galindo2017-10-181-1/+12
| | | | | is a small negative value. (GH-4003). (#4022) (cherry picked from commit 2c15b29aea5d6b9c61aa42d2c24a07ff1edb4b46)
* Bump version to 3.6.3+Ned Deily2017-10-031-1/+1
|
* Bump to 3.6.3v3.6.3Ned Deily2017-10-031-3/+3
|
* Bump to 3.6.3rc1v3.6.3rc1Ned Deily2017-09-191-4/+4
|
* [3.6] fixes bpo-31373: fix undefined floating-point demotions (GH-3396) (#3424)Miss Islington (bot)2017-09-071-11/+23
| | | (cherry picked from commit a853a8ba7850381d49b284295dd6f0dc491dbe44)
* bpo-28667: Fix a compile warning on FreeBSD when compare with FD_SETSIZE. ↵Victor Stinner2017-08-221-1/+1
| | | | | | | (#501) (#3190) FreeBSD is the only platforms with unsigned FD_SETSIZE. (cherry picked from commit 783d0c1a1c723733adcdf4249240246fc35a5bcb)
* Bump to v3.6.2+Ned Deily2017-07-171-3/+3
|
* Update for post-3.6.2rc2Ned Deily2017-07-081-2/+2
|
* [3.6] bpo-30703: Improve signal delivery (GH-2415) (#2527)Antoine Pitrou2017-07-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [3.6] bpo-30703: Improve signal delivery (GH-2415) * Improve signal delivery Avoid using Py_AddPendingCall from signal handler, to avoid calling signal-unsafe functions. * Remove unused function * Improve comments * Add stress test * Adapt for --without-threads * Add second stress test * Add NEWS blurb * Address comments @haypo. (cherry picked from commit c08177a1ccad2ed0d50898c2731b518c631aed14) * bpo-30796: Fix failures in signal delivery stress test (#2488) * bpo-30796: Fix failures in signal delivery stress test setitimer() can have a poor minimum resolution on some machines, this would make the test reach its deadline (and a stray signal could then kill a subsequent test). * Make sure to clear the itimer after the test
* [3.6] bpo-13617: Reject embedded null characters in wchar* strings. ↵Serhiy Storchaka2017-06-281-3/+7
| | | | | | | | | | (GH-2302) (#2462) Based on patch by Victor Stinner. Add private C API function _PyUnicode_AsUnicode() which is similar to PyUnicode_AsUnicode(), but checks for null characters.. (cherry picked from commit f7eae0adfcd4c50034281b2c69f461b43b68db84)