summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 3.6.8finalv3.6.8Ned Deily2018-12-238-14/+44
|
* bpo-35257: fix broken BLDSHARED - needs LDFLAGS too (GH-11297) (GH-11299)Miss Islington (bot)2018-12-231-1/+1
| | | | | | | | `BLDSHARED` needs to have both `LDFLAGS` and `LDFLAGS_NODIST`, not just `LDFLAGS_NODIST`; `PY_CORE_LDFLAGS` provides both. For example, as it stands now with just `LDFLAGS_NODIST`, macOS universal builds are broken as the necessary `-arch` flags are no longer passed to the standard library extension module link step from `setup.py` resulting in extension modules being single architecture only. https://bugs.python.org/issue35257 (cherry picked from commit 44a3ee07e30e18d83e2730c093d8b0e930f0a06c) Co-authored-by: Ned Deily <nad@python.org>
* bpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x03060000`. ↵Miss Islington (bot)2018-12-202-0/+4
| | | | | | | (GH-10620) (GH-11269) (cherry picked from commit 3e8f962e63c2f929604443531a9a3aced242f3e8) Co-authored-by: Arthur Neufeld <aneufeld@seinesoftware.ca>
* Fix documented signatures for C API functions. (GH-11236) (GH-11240)Miss Islington (bot)2018-12-202-5/+5
| | | | | (cherry picked from commit 57dd79e6f7f33bb4e6817ac58c9cb91de99675e0) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-35461: Document C API functions which suppress exceptions. (GH-11119) ↵Miss Islington (bot)2018-12-207-4/+35
| | | | | | | (GH-11210) (cherry picked from commit 3fcc1e08db6fb7e17acc4a8f63be3e42f52f094b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-35475: Add more PyImport* functions in refcounts.dat. (GH-11142) (GH-11199)Miss Islington (bot)2018-12-201-0/+28
| | | | | (cherry picked from commit bdabb0737c631835b246c9823852d20331243315) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.6] bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) ↵Victor Stinner2018-12-208-18/+37
| | | | | | | | | | | (GH-11265) When compiling 3rd party C extensions, the linker flags used by the compiler for the interpreter and the stdlib modules, will get leaked into distutils. In order to avoid that, the PY_CORE_LDFLAGS and PY_LDFLAGS_NODIST are introduced to keep those flags separated. (cherry picked from commit cf10a750f4b50b6775719cfb17bee00bc3a9c60b)
* [3.6] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10976)Myles Borins2018-12-202-0/+2
| | | (cherry picked from commit 0854b92cd2)
* bpo-35499: make profile-opt don't override CFLAGS_NODIST (GH-11164) (GH-11267)Victor Stinner2018-12-202-2/+5
| | | | | | | "make profile-opt" no longer replaces CFLAGS_NODIST with CFLAGS. It now adds profile-guided optimization (PGO) flags to CFLAGS_NODIST, existing CFLAGS_NODIST flags are kept. (cherry picked from commit 640ed520dd6a43a8bf470b79542f58b5d57af9de)
* bpo-35482: Fixes HTML escaping in CHM index and build location of NEWS file ↵Steve Dower2018-12-203-7/+29
| | | | (GH-11224) (GH-11251)
* bpo-35450: reflect in docs that venv module is not always creating a copy of ↵Miss Islington (bot)2018-12-141-3/+4
| | | | the Python binary (GH-11144) (GH-11168)
* Post release bumpNed Deily2018-12-122-3/+3
|
* 3.6.8rc1v3.6.8rc1Ned Deily2018-12-1190-320/+980
|
* Minor edits to NEWS entriesNed Deily2018-12-111-1/+3
|
* Update macOS installer Welcome for 3.6.8Ned Deily2018-12-111-1/+6
|
* macOS installer build: mitigate hdiutil resource busy bugNed Deily2018-12-111-6/+17
|
* bpo-35412: Skip test_multiprocessing_fork and ↵Miss Islington (bot)2018-12-112-0/+7
| | | | | | | | test_multiprocessing_forkserver on Windows (GH-11086) Forkserver and fork are not available on Windows and therefore these test must be skipped. (cherry picked from commit a932d0b496767b5aac14191cbc17093e502b6cb4) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-35426: Eliminate race condition in test_interprocess_signal (GH-11087)Miss Islington (bot)2018-12-111-22/+18
| | | | | | The test only except SIGUSR1Exception inside wait_signal(), but the signal can be sent during subprocess_send_signal() call. (cherry picked from commit 2ab2afd387084ba38a37f5944fcb0675113b64dc) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* [3.6] bpo-33747: Avoid mutating the global sys.modules dict in unittest.mock ↵Miss Islington (bot)2018-12-111-11/+16
| | | | | | | | | | | tests (GH-8520) (GH-11032) (cherry picked from commit 3cf74384b53b998fa846dc2590cedf9ad2a0d5fd) Co-authored-by: Anirudha Bose <ani07nov@gmail.com> https://bugs.python.org/issue33747
* bpo-35444: Fix error handling when fail to look up builtin "getattr". ↵Miss Islington (bot)2018-12-117-30/+29
| | | | | | | | (GH-11047) (GH-11107) (GH-11108) (cherry picked from commit bb86bf4c4eaa30b1f5192dab9f389ce0bb61114d) (cherry picked from commit 3cae16d2e98ffaa89ddd311df70a857dfaff4020) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.6] bpo-15663: the 10.6+ macOS installers for 3.6/2.7 now provide a ↵Ned Deily2018-12-114-76/+80
| | | | private Tcl/Tk 8.6 (GH-11109)
* [3.6] bpo-35454: Fix miscellaneous minor issues in error handling. ↵Serhiy Storchaka2018-12-119-23/+41
| | | | | | (GH-11077) (GH-11106) (cherry picked from commit 8905fcc85a6fc3ac394bc89b0bbf40897e9497a6)
* bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)Miss Islington (bot)2018-12-113-27/+10
| | | | | (cherry picked from commit 7cf3d8e25174c8871883e42f3240fd7f01efd3a8) Co-authored-by: Ned Deily <nad@python.org>
* [3.6] bpo-35401: Update macOS installer to OpenSSL 1.0.2q (GH-11095)Ned Deily2018-12-112-3/+4
| | | https://bugs.python.org/issue35401
* bpo-35401: Updates Windows build to OpenSSL 1.0.2q (GH-11089)Steve Dower2018-12-114-4/+4
|
* Fix numbered lists in stdtypes.rst. (GH-10989)Miss Islington (bot)2018-12-101-14/+10
| | | | | (cherry picked from commit de9e9b476ec4abfb0b9161cff0e86bb7085ca8c6) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* [3.6] bpo-35433: Properly detect installed SDK versions (GH-11009)Jeremy Kloth2018-12-102-7/+14
|
* bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079)Miss Islington (bot)2018-12-101-1/+3
| | | | | (cherry picked from commit b6ef6f69a9afc979640a5f9883f799de1364bff7) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-31374: Include pyconfig.h earlier in expat (GH-11064)Miss Islington (bot)2018-12-101-0/+1
| | | | | | | | | Include <pyconfig.h> ealier in Modules/expat/xmltok.c to define properly _POSIX_C_SOURCE. Python defines _POSIX_C_SOURCE as 200809L, whereas <features.h> (included indirectly by <string.h>) defines _POSIX_C_SOURCE as 199506L. (cherry picked from commit cf247359d5b7082044eea1fa94b5211a172b1ff6) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-35050: AF_ALG length check off-by-one error (GH-10058) (GH-11070)Victor Stinner2018-12-103-4/+27
| | | | | | | | | The length check for AF_ALG salg_name and salg_type had a off-by-one error. The code assumed that both values are not necessarily NULL terminated. However the Kernel code for alg_bind() ensures that the last byte of both strings are NULL terminated. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 2eb6ad8578fa9d764c21a92acd8e054e3202ad19)
* bpo-35052: Fix handler on xml.dom.minidom.cloneNode() (GH-11061) (GH-11067)Victor Stinner2018-12-103-4/+57
| | | | | | | | | | | | Fix xml.dom.minidom cloneNode() on a document with an entity: pass the correct arguments to the user data handler of an entity (fix an old copy/paste mistake). Bug spotted and fix proposed by Charalampos Stratakis, initial reproducer written by Petr Viktorin. Co-Authored-By: Charalampos Stratakis <cstratak@redhat.com> Co-Authored-By: Petr Viktorin <encukou@gmail.com> (cherry picked from commit 8e0418688906206fe59bd26344320c0fc026849e)
* bpo-35351: Pass link time optimization flags to CFLAGS_NODIST (GH-10797)Miss Islington (bot)2018-12-093-2/+4
| | | | | | | | | When using link time optimizations, the -flto flag is passed to BASECFLAGS, which makes it propagate to distutils. Those flags should be reserved for the interpreter and the stdlib extension modules only, thus moving those flags to CFLAGS_NODIST. (cherry picked from commit f92c7aa1ae81efa475b5aecf66e4711ef0f52c4c) Co-authored-by: stratakis <cstratak@redhat.com>
* bpo-28015: Support LTO build with clang (GH-9908) (GH-10922)stratakis2018-12-094-83/+235
| | | | | | | | | | | | | .o generated by clang in LTO mode actually are LLVM bitcode files, which leads to a few errors during configure/build step: - add lto flags to the BASECFLAGS instead of CFLAGS, as CFLAGS are used to build autoconf test case, and some are not compatible with clang LTO (they assume binary in the .o, not bitcode) - force llvm-ar instead of ar, as ar is not aware of .o files generated by clang -flto (cherry picked from commit 5ad36f9b21a3aa3b2265b1b43d73522cc3322df2) Co-authored-by: serge-sans-paille <serge.guelton@telecom-bretagne.eu>
* bpo-33725: skip test_multiprocessing_fork on macOS (GH-11043)Miss Islington (bot)2018-12-092-0/+5
| | | | | (cherry picked from commit ac218bc5dbfabbd61c76ce8a17de088611e21981) Co-authored-by: Ned Deily <nad@python.org>
* [3.7] Doc: Bump sphinx. (GH-10676) (GH-10803)Miss Islington (bot)2018-12-092-2/+2
| | | | | (cherry picked from commit 2db96ae7444880d66d4ef65abab8a5e6ff328711) Co-authored-by: Julien Palard <julien@palard.fr>
* bpo-35441: Remove dead and buggy code related to PyList_SetItem(). (GH-11033)Miss Islington (bot)2018-12-087-30/+25
| | | | | | | | | | | | In _localemodule.c and selectmodule.c, remove dead code that would cause double decrefs if run. In addition, replace PyList_SetItem() with PyList_SET_ITEM() in cases where a new list is populated and there is no possibility of an error. In addition, check if the list changed size in the loop in array_array_fromlist(). (cherry picked from commit 99d56b53560b3867844472ae381fb3f858760621) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-35330: Don't call the wrapped object if `side_effect` is set (GH11034)Miss Islington (bot)2018-12-083-11/+136
| | | | | | | | | | | | | | | | | | | | | | | | | * tests: Further validate `wraps` functionality in `unittest.mock.Mock` Add more tests to validate how `wraps` interacts with other features of mocks. * Don't call the wrapped object if `side_effect` is set When a object is wrapped using `Mock(wraps=...)`, if an user sets a `side_effect` in one of their methods, return the value of `side_effect` and don't call the original object. * Refactor what to be called on `mock_call` When a `Mock` is called, it should return looking up in the following order: `side_effect`, `return_value`, `wraps`. If any of the first two return `mock.DEFAULT`, lookup in the next option. It makes no sense to check for `wraps` returning default, as it is supposed to be the original implementation and there is nothing to fallback to. (cherry picked from commit f05df0a4b679d0acfd0b1fe6187ba2d553b37afa) Co-authored-by: Mario Corchero <mariocj89@gmail.com>
* bpo-35436: Add missing PyErr_NoMemory() calls and other minor bug fixes. ↵Serhiy Storchaka2018-12-0714-29/+107
| | | | | | | | | (GH-11015) (GH-11020) (GH-11026) (cherry picked from commit 4c49da0cb7434c676d70b9ccf38aca82ac0d64a9) (cherry picked from commit 602d307ac5e8a2da38a193dca3bdfef5994dfe67) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-22005: Fixed unpickling instances of datetime classes pickled by Python ↵Miss Islington (bot)2018-12-075-82/+328
| | | | | | | | 2. (GH-11017) (GH-11022) (GH-11024) encoding='latin1' should be used for successful decoding. (cherry picked from commit 8452ca15f41061c8a6297d7956df22ab476d4df4) (cherry picked from commit 0d5730e6437b157f4aeaf5d2e67abca23448c29a)
* bpo-34864: warn if "Prefer tabs when opening documents" set to "Always" ↵Miss Islington (bot)2018-12-075-9/+69
| | | | | | | | | | | | | | | | (GH-10464) * bpo-34864: warn if "Prefer tabs when opening documents" set to "Always" * add NEWS entry * address code review comments * address second code review comments * Add entry for idlelib/NEWS.txt. (cherry picked from commit 9ebe8794f003dadfff578a066ea503a3e37ffe1d) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* Add missing period in distutils.dep_util.newer_group doc (GH-11003)Miss Islington (bot)2018-12-061-1/+1
| | | | | (cherry picked from commit c9566b8c454120e3d0ddb5ab970f262a6cd80077) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* bpo-33023: Fix NotImplemented to NotImplementedError. (GH-10934). (GH-11001)Serhiy Storchaka2018-12-063-5/+11
| | | | (cherry picked from commit 42b1d6127bd8595522a78a75166ebb9fba74a6a2)
* bpo-35363: test_eintr uses print(flush=True) (GH-10990)Miss Islington (bot)2018-12-061-2/+3
| | | | | (cherry picked from commit 0644b33821b70efbf0ac1ec1fb8729b05796564a) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-35424: test_multiprocessing: join 3 pools (GH-10986)Miss Islington (bot)2018-12-061-0/+3
| | | | | | | | | Join 3 pools in these tests: * test.test_multiprocessing_spawn.WithProcessesTestPool.test_context * test.test_multiprocessing_spawn.WithProcessesTestPool.test_traceback (cherry picked from commit 388c8c208d9d09bd28289c1e4776b947d4d0f0f0) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-35384: The repr of ctypes.CArgObject no longer fails for non-ascii ↵Miss Islington (bot)2018-12-062-4/+23
| | | | | | | character. (GH-10863) (cherry picked from commit 3ffa8b9ba190101f674a0e524e482a83ed09cccd) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.6] bpo-34162: Update idlelib NEWS to 2018-12-05 (GH-10964) (GH-10979)Terry Jan Reedy2018-12-061-2/+40
| | | Cherry-picked from 6ea9d54.
* bpo-33709: test_ntpath and test_posixpath fail in Windows with ACP!=1252. ↵Miss Islington (bot)2018-12-061-1/+5
| | | | | | | (GH-7278) (cherry picked from commit 8752dfbd1f0c96ca09cdacabaf0d0f8c3895b6ce) Co-authored-by: native-api <ivan_pozdeev@mail.ru>
* [3.6] Revert "bpo-34172: multiprocessing.Pool leaks resources after being ↵Victor Stinner2018-12-063-57/+27
| | | | | deleted (GH-8450) (GH-9677)" (GH-10969) This reverts commit 07b96a95db78eff3557d1bfed1df9ebecc40815b.
* [3.6] Fix typo in xml.dom.minidom documentation (GH-10956) (GH-10962)Mariatta2018-12-051-1/+1
| | | | | | | Escape the \t and \n. Follow up from https://github.com/python/cpython/pull/10814.. (cherry picked from commit 2d8f976cde4794d174b44ff7d5fd970aa89c65e8) Co-authored-by: E Kawashima <e-kwsm@users.noreply.github.com>
* bpo-35363: test_eintr runs eintr_tester.py in verbose mode (GH-10965)Miss Islington (bot)2018-12-051-1/+15
| | | | | | | | Moreover, "python3 -m test test_eintr -v" now avoids redirecting stdout/stderr to a pipe, the child process inherits stdout/stderr from the parent. (cherry picked from commit aa8ae904ad2f576f8e7b38a9a6542d3e9a569be9) Co-authored-by: Victor Stinner <vstinner@redhat.com>