summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 3.7.2finalv3.7.2Ned Deily2018-12-238-14/+44
|
* bpo-35257: fix broken BLDSHARED - needs LDFLAGS too (GH-11297)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>
* [3.7] Removed dangling `since Python` at the end of library/xml.rst. ↵Miss Islington (bot)2018-12-231-2/+2
| | | | | | | | (GH-11201) (GH-11231) (cherry picked from commit 82d73554e4764350bfd8f13957c5e024ac95c4af) Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
* bpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x03060000`. (GH-10620)Miss Islington (bot)2018-12-232-0/+4
| | | | | (cherry picked from commit 3e8f962e63c2f929604443531a9a3aced242f3e8) Co-authored-by: Arthur Neufeld <aneufeld@seinesoftware.ca>
* [3.7] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10977)Myles Borins2018-12-232-0/+2
| | | (cherry picked from commit 0854b92cd2)
* bpo-35482: Fixes HTML escaping in CHM index and build location of NEWS file ↵Miss Islington (bot)2018-12-233-10/+29
| | | | | | | (GH-11224) (cherry picked from commit afe17a7bee1bcb39dc56f2949431204918568ac1) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) (GH-11264)Victor Stinner2018-12-238-18/+38
| | | | | | | | 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)
* bpo-35472: Doc: For Python 3.7 Sphinx 1.6.6 is enough. (GH-11192)Julien Palard2018-12-231-2/+2
|
* bpo-35499: make profile-opt don't override CFLAGS_NODIST (GH-11164) (GH-11179)Miss Islington (bot)2018-12-232-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) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* Fixed missing colun in library/sys.po (GH-11153)Miss Islington (bot)2018-12-211-1/+1
| | | | | | | | GH- Fixed missing colun in library/sys.po [bpo-35492](https://bugs.python.org/issue35492): Fixed missing colun in library/sys.po (cherry picked from commit cb0f5e29e37c081e9bba91a9858370e2504e9e8e) Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
* 3.7.2rc1v3.7.2rc1Ned Deily2018-12-11103-382/+1168
|
* Minor edits to NEWS entriesNed Deily2018-12-111-1/+3
|
* Update macOS installer Welcome for 3.7.2Ned Deily2018-12-111-12/+17
|
* 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.7] bpo-33747: Avoid mutating the global sys.modules dict in unittest.mock ↵Miss Islington (bot)2018-12-111-11/+16
| | | | | | | | | | | tests (GH-8520) (GH-11031) (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". ↵Serhiy Storchaka2018-12-117-30/+29
| | | | | (GH-11047) (GH-11107) (cherry picked from commit bb86bf4c4eaa30b1f5192dab9f389ce0bb61114d)
* bpo-35454: Fix miscellaneous minor issues in error handling. (GH-11077)Miss Islington (bot)2018-12-119-23/+44
| | | | | | | | * bpo-35454: Fix miscellaneous minor issues in error handling. * Fix a null pointer dereference. (cherry picked from commit 8905fcc85a6fc3ac394bc89b0bbf40897e9497a6) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* 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>
* bpo-35401: Update macOS installer to OpenSSL 1.1.0j (GH-11094)Miss Islington (bot)2018-12-112-3/+4
| | | | | | https://bugs.python.org/issue35401 (cherry picked from commit 3ec982640f89f6ce56dd2699a81e0bd834ae0c95) Co-authored-by: Ned Deily <nad@python.org>
* bpo-34977: Remove unused preprocessor definition (GH-11092)Miss Islington (bot)2018-12-111-12/+0
| | | | | (cherry picked from commit d5a6a389d492c5e3d7933bafbd5252fd86ac4d49) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* bpo-35401: Update Windows build to OpenSSL 1.1.0j (GH-11088)Miss Islington (bot)2018-12-114-13/+5
| | | | | (cherry picked from commit 4824385fec0a1de99b4183f995a3e4923771bf64) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* bpo-34977: Add Windows App Store package (GH-11027)Steve Dower2018-12-1148-405/+2929
| | | Also adds the PC/layout script for generating layouts on Windows.
* 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.7] bpo-34977: Use venv redirector instead of original python.exe on ↵Steve Dower2018-12-1011-60/+465
| | | | Windows (GH-11029)
* 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-35452: Make PySys_HasWarnOptions() never raising an exception. (GH-11075)Miss Islington (bot)2018-12-101-1/+2
| | | | | (cherry picked from commit dffccc6b594951fc798973e521da205785823f0f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.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-11069)Victor Stinner2018-12-103-3/+26
| | | | | | | | | 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-11066)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-35451: Fix reference counting for sys.warnoptions and sys._xoptions. ↵Miss Islington (bot)2018-12-101-2/+0
| | | | | | | (GH-11063) (cherry picked from commit 72ff7b4c000f7b8199231a0eb1ca4b119fab40a5) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-35433: Properly detect installed SDK versions (GH-11009)Miss Islington (bot)2018-12-102-7/+13
| | | | | (cherry picked from commit f46eccd0ffe65333035c3820886295b71c41ab6e) Co-authored-by: Jeremy Kloth <jeremy.kloth@gmail.com>
* bpo-22005: Document the reality of pickle compatibility. (GH-11054)Miss Islington (bot)2018-12-091-1/+3
| | | | | (cherry picked from commit e328753d91379274b699b93decff45de07854617) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* 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: Disable smartquotes for zh-tw, zh-cn, fr and ja translations ↵Julien Palard2018-12-092-4/+7
| | | | | (GH-9423) (GH-10344) (cherry picked from commit c03bf0ae794c3bec9b56f38164535fd1f5bfc04a)
* [3.7] Doc: Bump sphinx. (GH-10676) (GH-10803)Julien Palard2018-12-092-2/+2
|
* 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 (GH11035)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>
* Revert "[3.7] bpo-34977: Add Windows App Store package (GH-10245)" (GH-11021)Victor Stinner2018-12-0751-3097/+338
| | | This reverts commit 253209149389e6793a052034e1f2d97691086f18.
* [3.7] bpo-22005: Fixed unpickling instances of datetime classes pickled by ↵Serhiy Storchaka2018-12-075-82/+328
| | | | | | | Python 2. (GH-11017) (GH-11022) encoding='latin1' should be used for successful decoding. (cherry picked from commit 8452ca15f41061c8a6297d7956df22ab476d4df4)
* bpo-35436: Add missing PyErr_NoMemory() calls and other minor bug fixes. ↵Zackery Spytz2018-12-0716-24/+109
| | | | | (GH-11015) (GH-11020) (cherry picked from commit 4c49da0cb7434c676d70b9ccf38aca82ac0d64a9)
* 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>
* [3.7] bpo-34977: Add Windows App Store package (GH-10245)Steve Dower2018-12-0751-338/+3094
|
* 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>
* Clarify expectedFailure in the unittest docs. (GH-10953)Miss Islington (bot)2018-12-061-2/+2
| | | | | (cherry picked from commit 91f259b478ae8bfb4c73e5b5a767e4bf0ee9257f) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-33023: Fix NotImplemented to NotImplementedError. (GH-10934)Miss Islington (bot)2018-12-063-4/+9
| | | | | (cherry picked from commit 42b1d6127bd8595522a78a75166ebb9fba74a6a2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* 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>