summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* 3.7.2finalv3.7.2Ned Deily2018-12-235-8/+38
|
* bpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x03060000`. (GH-10620)Miss Islington (bot)2018-12-231-0/+2
| | | | | (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-231-0/+1
| | | (cherry picked from commit 0854b92cd2)
* bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) (GH-11264)Victor Stinner2018-12-231-0/+2
| | | | | | | | 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-35499: make profile-opt don't override CFLAGS_NODIST (GH-11164) (GH-11179)Miss Islington (bot)2018-12-231-0/+3
| | | | | | | | "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>
* 3.7.2rc1v3.7.2rc1Ned Deily2018-12-11100-224/+1017
|
* Minor edits to NEWS entriesNed Deily2018-12-111-1/+3
|
* bpo-35444: Fix error handling when fail to look up builtin "getattr". ↵Serhiy Storchaka2018-12-111-0/+2
| | | | | (GH-11047) (GH-11107) (cherry picked from commit bb86bf4c4eaa30b1f5192dab9f389ce0bb61114d)
* bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)Miss Islington (bot)2018-12-111-0/+1
| | | | | (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-111-0/+1
| | | | | | https://bugs.python.org/issue35401 (cherry picked from commit 3ec982640f89f6ce56dd2699a81e0bd834ae0c95) Co-authored-by: Ned Deily <nad@python.org>
* bpo-35401: Update Windows build to OpenSSL 1.1.0j (GH-11088)Miss Islington (bot)2018-12-111-0/+1
| | | | | (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-111-0/+1
| | | Also adds the PC/layout script for generating layouts on Windows.
* [3.7] bpo-34977: Use venv redirector instead of original python.exe on ↵Steve Dower2018-12-101-0/+2
| | | | Windows (GH-11029)
* bpo-35050: AF_ALG length check off-by-one error (GH-10058) (GH-11069)Victor Stinner2018-12-101-0/+1
| | | | | | | | | 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-101-0/+2
| | | | | | | | | | | | 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-33725: skip test_multiprocessing_fork on macOS (GH-11043)Miss Islington (bot)2018-12-091-0/+2
| | | | | (cherry picked from commit ac218bc5dbfabbd61c76ce8a17de088611e21981) Co-authored-by: Ned Deily <nad@python.org>
* bpo-35330: Don't call the wrapped object if `side_effect` is set (GH11035)Miss Islington (bot)2018-12-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-071-1/+0
| | | This reverts commit 253209149389e6793a052034e1f2d97691086f18.
* [3.7] bpo-22005: Fixed unpickling instances of datetime classes pickled by ↵Serhiy Storchaka2018-12-071-0/+3
| | | | | | | 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-071-0/+2
| | | | | (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-071-0/+2
| | | | | | | | | | | | | | | | (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-071-0/+1
|
* [3.7] Revert "bpo-34172: multiprocessing.Pool leaks resources after being ↵Victor Stinner2018-12-061-0/+3
| | | | | | deleted (GH-8450) (GH-9676)" (#10968) This reverts commit 97f998a4dfd6db6d867f446daa62445d0782bf39.
* bpo-35310: Clear select() lists before returning upon EINTR (GH-10877)Miss Islington (bot)2018-12-051-0/+4
| | | | | | | | | select() calls are retried on EINTR (per PEP 475). However, if a timeout was provided and the deadline has passed after running the signal handlers, rlist, wlist and xlist should be cleared since select(2) left them unmodified. (cherry picked from commit 7f52415a6d4841d77d3b7853e83b25a22e0048dc) Co-authored-by: Oran Avraham <252748+oranav@users.noreply.github.com>
* bpo-34604: Use %R because of invisible characters or trailing whitespaces. ↵Serhiy Storchaka2018-12-051-0/+3
| | | | | | | (GH-9165). (GH-10947) (cherry picked from commit 34c7f0c04e2b4e715b2c3df1875af8939fbe7d0b) Co-authored-by: William Grzybowski <wg@FreeBSD.org>
* bpo-34052: Prevent SQLite functions from setting callbacks on exceptions. ↵Serhiy Storchaka2018-12-051-0/+7
| | | | | | | (GH-8113). (GH-10946) (cherry picked from commit 5b25f1d03100e2283c1b129d461ba68ac0169a14) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
* bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419)Miss Islington (bot)2018-12-051-0/+2
| | | | | (cherry picked from commit 67a93b3a0b3814e97ef9d077b21325fc8ce351b2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919)Miss Islington (bot)2018-12-051-0/+5
| | | | | | | | | | * posixpath.expanduser() now returns the input path unchanged if the HOME environment variable is not set and pwd.getpwuid() raises KeyError (the current user identifier doesn't exist in the password database). * Add test_no_home_directory() to test_site. (cherry picked from commit f2f4555d8287ad217a1dba7bbd93103ad4daf3a8) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-35296: make install now installs the internal API (GH-10665) (GH-10897)Victor Stinner2018-12-042-0/+4
| | | | | | | | | | | | | * bpo-35296: make install now installs the internal API (GH-10665) make install now also installs the internal API: Include/internal/*.h header files. (cherry picked from commit f653fd4d950ac092719b6152e38d77c62b443125) * Windows installer now also install Include/internal/ The Windows installer (MSI) now also install header files of the Include/internal/ subdirectory.
* bpo-29564: warnings suggests to enable tracemalloc (GH-10486) (GH-10509)Miss Islington (bot)2018-12-041-0/+3
| | | | | | | | The warnings module now suggests to enable tracemalloc if the source is specified, tracemalloc module is available, but tracemalloc is not tracing memory allocations. (cherry picked from commit 2c07c493d2eb45101312e3eb3a77f94d0c9cad1f) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-35351: Pass link time optimization flags to CFLAGS_NODIST (GH-10797)Miss Islington (bot)2018-12-041-0/+2
| | | | | | | | | 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-35357: Add _mock_ prefix to name/parent/from_kall attributes of ↵Miss Islington (bot)2018-12-041-0/+4
| | | | | | | | _Call/_MagicProxy. (GH-10873) (#10887) Fix minor typo in test function name. (cherry picked from commit e63e617ebbe481c498bdf037a62e09f4f9f3963f) Co-authored-by: Andrew Dunai <andunai@gmail.com>
* bpo-35226: Fix equality for nested unittest.mock.call objects. (GH-10555)Miss Islington (bot)2018-12-031-0/+3
| | | | | | | Also refactor the call recording imolementation and add some notes about its limitations. (cherry picked from commit 8ca0fa9d2f4de6e69f0902790432e0ab2f37ba68) Co-authored-by: Chris Withers <chris@withers.org>
* [3.7] bpo-35380: Enable TCP_NODELAY for proactor event loop (GH-10867) ↵Miss Islington (bot)2018-12-031-0/+1
| | | | | | | | | (GH-10872) * bpo-35380: Enable TCP_NODELAY for proactor event loop (GH-10867) (cherry picked from commit 3bc0ebab17bf5a2c29d2214743c82034f82e6573) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* bpo-35372: Fix the code page decoder for input > 2 GiB. (GH-10848)Miss Islington (bot)2018-12-031-0/+2
| | | | | (cherry picked from commit 4013c179117754b039957db4730880bf3285919d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-35341: Add generic version of OrderedDict to typing (GH-10850)Miss Islington (bot)2018-12-021-0/+1
| | | | | (cherry picked from commit 68b56d02ef20479b87c65e523cf3dec1b7b77d40) Co-authored-by: Ismo Toijala <ismo.toijala@gmail.com>
* bpo-35371: Fix possible crash in os.utime() on Windows. (GH-10844)Miss Islington (bot)2018-12-011-0/+2
| | | | | (cherry picked from commit 32bc11c33cf5ccea165b5f4ac3799f02fdf9c76a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-31177: Skip deleted attributes while calling reset_mock (GH-9302)Miss Islington (bot)2018-12-011-0/+2
| | | | | (cherry picked from commit edeca92c84a3b08902ecdfe987cde00c7e617887) Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
* [3.7] bpo-35352: test_asyncio uses the certificate set from the test ↵Victor Stinner2018-11-301-0/+1
| | | | | | | | | | | | | | | | | | directory (GH-10826) (GH-10834) * bpo-35352: test_asyncio uses the certificate set from the test directory (GH-10826) Modify asyncio tests to utilize the certificates from the test directory instead of its own set, as they are the same and with each update they had to be updated as well. (cherry picked from commit b062ba77b617b0f89b7ea25d14cc77c991462ad4) * bpo-35352: Cleanup test_asyncio/utils.py (GH-10831) 'here' variable is no longer needed. (cherry picked from commit 7212148c95947b0fdfcb0c8e37d4357287bdb4bd)
* bpo-33015: Fix UB in pthread PyThread_start_new_thread (GH-6008)Miss Islington (bot)2018-11-301-0/+3
| | | | | | | | | | Fix an undefined behaviour in the pthread implementation of PyThread_start_new_thread(): add a function wrapper to always return NULL. Add pythread_callback struct and pythread_wrapper() to thread_pthread.h. (cherry picked from commit 9eea6eaf23067880f4af3a130e3f67c9812e2f30) Co-authored-by: Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com>
* bpo-35336: Fix PYTHONCOERCECLOCALE=1 (GH-10806) (GH-10813)Victor Stinner2018-11-301-0/+2
| | | | | | Fix PYTHONCOERCECLOCALE=1 environment variable: only coerce the C locale if the LC_CTYPE locale is "C". (cherry picked from commit 55e498058faf8c97840556f6d791c2c392732dc3)
* [3.7] bpo-34279: Synchronize regrtest with master (GH-10800)Victor Stinner2018-11-291-0/+3
| | | | | | | | | | | | | * bpo-34605, libregrtest: Rename --slaveargs to --worker-args (GH-9099) Rename also run_tests_slave() to run_tests_worker(). (cherry picked from commit 012f5b968a738b15ae9b40c499a1c0778b0615a9) * bpo-34279, regrtest: Issue a warning if no tests have been executed (GH-10150) (cherry picked from commit 9724348b43a9005a449ba532ccd3c6726f031097) * test_regrtest: remove unused threading import
* bpo-27903: Fix ResourceWarning in platform.dist() (GH-10792)Victor Stinner2018-11-291-0/+2
| | | | | | Fix ResourceWarning in platform.dist() and platform.linux_distribution() on SuSE and Caldera OpenLinux. Patch by Ville Skyttä.
* bpo-34022: Stop forcing of hash-based invalidation with SOURCE_DATE_EPOCH ↵Miss Islington (bot)2018-11-281-0/+3
| | | | | | | | | | | | | | | | | | | | | | | (GH-9607) Unconditional forcing of ``CHECKED_HASH`` invalidation was introduced in 3.7.0 in bpo-29708. The change is bad, as it unconditionally overrides *invalidation_mode*, even if it was passed as an explicit argument to ``py_compile.compile()`` or ``compileall``. An environment variable should *never* override an explicit argument to a library function. That change leads to multiple test failures if the ``SOURCE_DATE_EPOCH`` environment variable is set. This changes ``py_compile.compile()`` to only look at ``SOURCE_DATE_EPOCH`` if no explicit *invalidation_mode* was specified. I also made various relevant tests run with explicit control over the value of ``SOURCE_DATE_EPOCH``. While looking at this, I noticed that ``zipimport`` does not work with hash-based .pycs _at all_, though I left the fixes for subsequent commits. (cherry picked from commit a6b3ec5b6d4f6387820fccc570eea08b9615620d) Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
* bpo-34523, bpo-35322: Fix unicode_encode_locale() (GH-10759) (GH-10761)Victor Stinner2018-11-281-0/+2
| | | | | | | | Fix memory leak in PyUnicode_EncodeLocale() and PyUnicode_EncodeFSDefault() on error handling. Fix unicode_encode_locale() error handling. (cherry picked from commit bde9d6bbb46ca59bcee5d5060adaa33c3ffee3a6)
* bpo-35317: Fix mktime() error in test_email (GH-10721)Miss Islington (bot)2018-11-271-0/+3
| | | | | | | | Fix mktime() overflow error in test_email: run test_localtime_daylight_true_dst_true() and test_localtime_daylight_false_dst_true() with a specific timezone. (cherry picked from commit cfaafda8e3e19764682abb4bd4c574accb784c42) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-35308: Fix regression where BROWSER env var is not respected. (GH-10693)Miss Islington (bot)2018-11-261-0/+2
| | | | | | | | Regression introduced in e3ce695 and 25b804a, where the old parameter update_tryorder to _synthesize was first ignored, then given the opposite value in the attempt to fix bpo-31014. (cherry picked from commit 8c281ed403fd915284d5bba2405d7c47f8195066) Co-authored-by: Zhiming Wang <i@zhimingwang.org>
* bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) (GH-10718)Victor Stinner2018-11-261-0/+3
| | | | | | | | | | 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)
* bpo-29877: compileall: import ProcessPoolExecutor only when needed (GH-4856)Miss Islington (bot)2018-11-231-0/+2
| | | | | | | | | Importing ProcessPoolExecutor may hang or cause an error when the import accesses urandom on a low resource platform https://bugs.python.org/issue29877 (cherry picked from commit 1d817e4c8259f49602eefe9729743f6d9d748e8d) Co-authored-by: Dustin Spicuzza <dustin@virtualroadside.com>
* bpo-34812: subprocess._args_from_interpreter_flags(): add isolated (GH-10675)Miss Islington (bot)2018-11-231-0/+4
| | | | | | | | | | | The "-I" command line option (run Python in isolated mode) is now also copied by the multiprocessing and distutils modules when spawning child processes. Previously, only -E and -s options (enabled by -I) were copied. subprocess._args_from_interpreter_flags() now copies the -I flag. (cherry picked from commit 9de363271519e0616f4a7b59427057c4810d3acc) Co-authored-by: Victor Stinner <vstinner@redhat.com>