summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* 3.6.5finalv3.6.5Ned Deily2018-03-283-2/+16
|
* bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1. (GH-6285)Miss Islington (bot)2018-03-281-0/+1
| | | | | (cherry picked from commit c0518cde7a8404f310cd3495e77e612820ecad4f) Co-authored-by: Ned Deily <nad@python.org>
* bpo-32872: Avoid regrtest compatibility issue with namespace packages. ↵Miss Islington (bot)2018-03-281-0/+1
| | | | | | | (GH-6276) (GH-6278) (cherry picked from commit e52ac045972a4f75d7f52e4ee0d6de128259134d) Co-authored-by: Ned Deily <nad@python.org>
* 3.6.5rc1v3.6.5rc1Ned Deily2018-03-1487-173/+867
|
* bpo-32726: macOS installer changes for 3.6.5Ned Deily2018-03-141-0/+4
| | | | | | | | | | | | | | | | | | | | | | | Backport the new 10.9+ installer variant from 3.7. This variant features more modern options; like 64-bit only (Apple is deprecating 32-bit support in future macOS releases); a built-in version of Tcl/Tk 8.6.8; built with clang rather than gcc-4.2. For 3.6.5, the 10.9+ variant will be offered as an additional alternative to the traditional 10.6+ variant in earlier 3.6.x releases. Binary extension modules (including wheels) built for earlier versions of 3.6.x with the 10.6 variant should continue to work with either 3.6.5 variant without recompilation. In addition, both installer variants have updated 3rd-party libraries: OpenSSL 1.0.2m -> 1.0.2n XZ 5.2.2 -> 5.2.3 SQLite 3.21.0 -> 3.22.0 Also the 10.6 variant now sets CC=gcc instead of CC=gcc-4.2 and does not search for the outdated 10.6 SDK. The variant is built with the same compiler as before. As before, for extension module builds, the CC can be overridden with the CC env variable and an SDK can be specified with the SDKROOT env variable (see man xcrun). These minor changes should be transparent to nearly all users.
* [3.7] bpo-17288: Prevent jumps from 'return' and 'exception' trace events. ↵Miss Islington (bot)2018-03-131-0/+1
| | | | | | | (GH-5928) (cherry picked from commit e32bbaf376a09c149fa7c7f2919d7c9ce4e2a055) Co-authored-by: xdegaye <xdegaye@gmail.com>
* bpo-33064: lib2to3: support trailing comma after *args and **kwargs ↵Miss Islington (bot)2018-03-131-0/+2
| | | | | | | | | | | | (GH-6096) (#6098) New tests also added. I also made the comments in line with the builtin Grammar/Grammar. PEP 306 was withdrawn, Kees Blom's railroad program has been lost to the sands of time for at least 16 years now (I found a python-dev post from people looking for it). (cherry picked from commit b51f5de71163f096d2d5229ede5379cdb284f651) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.6] bpo-31804: Fix multiprocessing.Process with broken standard streams ↵Antoine Pitrou2018-03-111-0/+2
| | | | | | | | (GH-6079) (GH-6081) In some conditions the standard streams will be None or closed in the child process (for example if using "pythonw" instead of "python" on Windows). Avoid failing with a non-0 exit code in those conditions. Report and initial patch by poxthegreat.. (cherry picked from commit e756f66c83786ee82f5f7d45931ae50a6931dd7f)
* [3.6] bpo-33026: Fix jumping out of "with" block by setting f_lineno. ↵Miss Islington (bot)2018-03-111-0/+1
| | | | | | | | (GH-6026). (GH-6074) (GH-6075) (cherry picked from commit 26c9f565d016db21257a60d29ab2c99383dd5ac7) (cherry picked from commit 04aadf23eac51fec2e436c5960c1362bbb7d03de) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.6] bpo-33037: Skip sending/receiving after SSL transport closing ↵Andrew Svetlov2018-03-101-0/+1
| | | | | | (GH-6044) (GH-6058) * Skip write()/data_received() if sslpipe is destroyed. (cherry picked from commit 5e80a71ab67045fecec46573a1892e240b569ace)
* bpo-32517: fix test_read_pty_output() hangs on macOS 10.13.2+ (GH-6037)Nathan Henrie2018-03-092-0/+3
| | | | | test_asyncio hangs indefinitely on macOS 10.13.2+ on `read_pty_output()` using the KqueueSelector. Closing `proto.transport` (as is done in `write_pty_output()`) seems to fix it.
* bpo-33016: Fix potential use of uninitialized memory in nt._getfinalpathname ↵Steve Dower2018-03-081-0/+1
| | | | (GH-6032)
* [3.6] bpo-30353: Fix pass by value for structs on 64-bit Cygwin/MinGW ↵Miss Islington (bot)2018-03-081-0/+1
| | | | | | | | (GH-1559) (GH-5954) (cherry picked from commit 9ba3aa4d02a110d1a1ea464a8aff3be7dd9c63c3) Co-authored-by: Erik Bray <erik.m.bray@gmail.com>
* bpo-32969: Expose some missing constants in zlib and fix the doc (GH-5988)Miss Islington (bot)2018-03-071-0/+2
| | | | | (cherry picked from commit bc3f2289b9007396bfb7f986bee477b6176c1822) Co-authored-by: Xiang Zhang <angwerzx@126.com>
* bpo-33009: Fix inspect.signature() for single-parameter partialmethods. ↵Miss Islington (bot)2018-03-061-0/+1
| | | | | | | (GH-6004) (cherry picked from commit 8a387219bdfb6ee34928d6168ac42ca559f11c9a) Co-authored-by: Yury Selivanov <yury@magic.io>
* [3.6] bpo-33001: Prevent buffer overrun in os.symlink (GH-5989) (GH-5990)Steve Dower2018-03-051-0/+1
|
* bpo-32984: IDLE - set __file__ for startup files (GH-5981)Miss Islington (bot)2018-03-051-0/+7
| | | | | | | | | | | | Like Python, IDLE optionally runs one startup file in the Shell window before presenting the first interactive input prompt. For IDLE, option -s runs a file named in environmental variable IDLESTARTUP or PYTHONSTARTUP; -r file runs file. Python sets __file__ to the startup file name before running the file and unsets it before the first prompt. IDLE now does the same when run normally, without the -n option. (cherry picked from commit 22c82be5df70c3d51e3f89b54fe1d4fb84728c1e) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-32857: Raise error when tkinter after_cancel() is called with None. ↵Miss Islington (bot)2018-03-041-0/+1
| | | | | | | (GH-5701) (cherry picked from commit 74382a3f175ac285cc924a73fd758e8dc3cc41bb) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* [3.6] bpo-32981: Fix catastrophic backtracking vulns (GH-5955)Benjamin Peterson2018-03-042-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Prevent low-grade poplib REDOS (CVE-2018-1060) The regex to test a mail server's timestamp is susceptible to catastrophic backtracking on long evil responses from the server. Happily, the maximum length of malicious inputs is 2K thanks to a limit introduced in the fix for CVE-2013-1752. A 2KB evil response from the mail server would result in small slowdowns (milliseconds vs. microseconds) accumulated over many apop calls. This is a potential DOS vector via accumulated slowdowns. Replace it with a similar non-vulnerable regex. The new regex is RFC compliant. The old regex was non-compliant in edge cases. * Prevent difflib REDOS (CVE-2018-1061) The default regex for IS_LINE_JUNK is susceptible to catastrophic backtracking. This is a potential DOS vector. Replace it with an equivalent non-vulnerable regex. Also introduce unit and REDOS tests for difflib. Co-authored-by: Tim Peters <tim.peters@gmail.com> Co-authored-by: Christian Heimes <christian@python.org>. (cherry picked from commit 0e6c8ee2358a2e23117501826c008842acb835ac)
* bpo-32903: Fix a memory leak in os.chdir() on Windows (GH-5801) (#5946)Miss Islington (bot)2018-03-011-0/+2
| | | | | (cherry picked from commit 3e197c7a6740d564ad52fb7901c07d5ff49460f5) Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com>
* bpo-32940: IDLE: Simplify StringTranslatePseudoMapping in pyparse (GH-5862)Miss Islington (bot)2018-02-281-0/+1
| | | | | | The new code also runs faster. (cherry picked from commit f0daa880a405c8de6743e44fa46006754aa145c9) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* [3.6] bpo-32922: dbm.open() now encodes filename with the filesystem ↵Serhiy Storchaka2018-02-271-0/+2
| | | | | | | encoding. (GH-5832). (GH-5906) (cherry picked from commit 6f600ff1734ca2fdcdd37a809adf8130f0d8cc4e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-32713: Fix tarfile.itn for large/negative float values. (GH-5434)Miss Islington (bot)2018-02-271-0/+1
| | | | | (cherry picked from commit 72d9b2be36f091793ae7ffc5ad751f040c6e6ad3) Co-authored-by: Joffrey F <f.joffrey@gmail.com>
* bpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints ↵Miss Islington (bot)2018-02-261-0/+3
| | | | | | | (GH-4745) (cherry picked from commit eee72d4778a5513038edd5236cdd87ccce2bc60a) Co-authored-by: Tobotimus <Tobotimus@users.noreply.github.com>
* Revert "[3.6] bpo-32303 - Consistency fixes for namespace loaders (GH-5481) ↵Barry Warsaw2018-02-262-3/+0
| | | | | (#5504)" (#5911) This reverts commit a71397fb6603d0fe673acd7765c74699cd28fe7b.
* [3.6] bpo-32394: Remove some TCP options on older version Windows. (GH-5585)animalize2018-02-261-0/+2
|
* bpo-18533: Avoid RecursionError from repr() of recursive dictview (GH-4823)Miss Islington (bot)2018-02-261-0/+3
| | | | | | | | | | | | | | | | | | dictview_repr(): Use a Py_ReprEnter() / Py_ReprLeave() pair to check for recursion, and produce "..." if so. test_recursive_repr(): Check for the string rather than a RecursionError. (Test cannot be any tighter as contents are implementation-dependent.) test_deeply_nested_repr(): Add new test, replacing the original test_recursive_repr(). It checks that a RecursionError is raised in the case of a non-recursive but deeply nested structure. (Very similar to what test_repr_deep() in test/test_dict.py does for a normal dict.) OrderedDictTests: Add new test case, to test behavior on OrderedDict instances containing their own values() or items(). (cherry picked from commit d7773d92bd11640a8c950d6c36a9cef1cee36f96)
* [3.6] bpo-32647: Link ctypes extension with libdl. (GH-5550) (#5875)Miss Islington (bot)2018-02-251-0/+2
| | | | | | | | | The ctypes module used to depend on indirect linking for dlopen. The shared extension is now explicitly linked against libdl on platforms with dl. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 5bb9692575f10f4a7c7f1c2c0c70956baf6d5c23) Co-authored-by: Christian Heimes <christian@python.org>
* [3.6] bpo-30622: Improve NPN support detection (GH-5859) (#5861)Christian Heimes2018-02-251-0/+1
| | | | | | | | | The ssl module now detects missing NPN support in LibreSSL. Co-Authored-By: Bernard Spil <brnrd@FreeBSD.org> Signed-off-by: Christian Heimes <christian@python.org>. (cherry picked from commit 6cdb7954b0a578d899e4b78b868ea59eef08480a) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-32185: Don't send IP in SNI TLS extension (#5865)Christian Heimes2018-02-251-0/+2
| | | | | | The SSL module no longer sends IP addresses in SNI TLS extension on platforms with OpenSSL 1.0.2+ or inet_pton. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-17232: Clarify docs for -O and -OO command line options (GH-5839)Miss Islington (bot)2018-02-252-2/+6
| | | | | | The 'optimization' is for space in the executable file, not for run time. (cherry picked from commit 186b606d8a2ea4fd51b7286813302c8e8c7006cc) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-31518: Change TLS protocol for Debian (#3660)Christian Heimes2018-02-241-0/+3
| | | | | | | Debian Unstable has disabled TLS 1.0 and 1.1 for SSLv23_METHOD(). Change TLS/SSL protocol of some tests to PROTOCOL_TLS or PROTOCOL_TLSv1_2 to make them pass on Debian. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data. (GH-5754)Miss Islington (bot)2018-02-241-0/+1
| | | | | (cherry picked from commit 42c35d9c0c8175332f50fbe034a001fe52f057b9) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-32916: IDLE: Change `str` to `code` in pyparse (GH-5830)Miss Islington (bot)2018-02-241-0/+1
| | | | | | Adjust tests and user modules to match. (cherry picked from commit c29c03a34a9f3c82704b66f323ce5ea9dc89c8af) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* [3.6] bpo-30028: make test.support.temp_cwd() fork-safe (GH-1066) (GH-5826)Anselm Kruis2018-02-231-0/+1
| | | | | | | Make test.support.temp_cwd() fork-safe. The context manager test.support.temp_cwd() no longer removes the temporary directory when executing in a process other than the parent it entered from. If a forked child exits the context manager it won't do the cleanup.. (cherry picked from commit 33dddac00ba8d9b72cf21b8698504077eb3c23ad) Co-authored-by: Anselm Kruis <a.kruis@science-computing.de>
* bpo-32457: Improves handling of denormalized executable path when launching ↵Steve Dower2018-02-221-0/+1
| | | | Python (GH-5756) (#5818)
* bpo-32905: IDLE - remove unused code in pyparse module (GH-5807)Miss Islington (bot)2018-02-221-0/+1
| | | | | | dump is similar to print but less flexible. lastopenbracketpos is now always initialized in _study2, as was stmt_bracketing, so the class settings are not needed. get_last_open_bracket_pos is never called. (cherry picked from commit 451d1edaf4d27c4e632d81246d308e8dd6ea945f) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-32874: IDLE: add tests for pyparse (GH-5755)Miss Islington (bot)2018-02-221-0/+1
| | | | | | There are no code changes other than comments and docstrings. (cherry picked from commit c84cf6c03fce1fb73bfaf91d7909f1c2708f14a2) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-32889: update valgrind suppressions (GH-5779)Miss Islington (bot)2018-02-212-5/+7
| | | | | | | Py_ADDRESS_IN_RANGE was renamed address_in_range in 3.6 (commit 3924f93794fd740c547b44884f73303196475cd5). (cherry picked from commit ba518804bf4c1ea01df5e622b333d3116cbaa3bd) Co-authored-by: Paul Price <price@astro.princeton.edu>
* closes bpo-32859: Don't retry dup3() if it is not available at runtime (GH-5708)Miss Islington (bot)2018-02-211-0/+2
| | | | | | | | | | | os.dup2() tests for dup3() system call availability at runtime, but doesn't remember the result across calls, repeating the test on each call with inheritable=False. Since the caller of os.dup2() is expected to hold the GIL, fix this by making the variable holding the test result static. (cherry picked from commit b3caf388a0418f6c031e4dbdcc0c1ce7e5cc36bd) Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com>
* bpo-31848: Fix broken error handling in Aifc_read.initfp() when the SSND ↵Miss Islington (bot)2018-02-202-0/+3
| | | | | | | | | chunk is not found (GH-5240) Initialize self._ssnd_chunk so that aifc.Error is raised as intended, not AttributeError. (cherry picked from commit 80d20b918bd8a882043c493a7f958333ecb41727) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-32409: Ensures activate.bat can handle Unicode contents (GH-5766)Miss Islington (bot)2018-02-201-0/+1
| | | | | (cherry picked from commit 6240917b773b52f8883387b9e3a5f327a4372068) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* Improve error message for "setup.py upload" without dist files (GH-21060)Miss Islington (bot)2018-02-191-0/+3
| | | | | (cherry picked from commit 08a6926b2584040fe3c3f06263b0b5f1fbbdc24c) Co-authored-by: Éric Araujo <merwok@netwok.org>
* bpo-31972: Improve docstrings for pathlib classes (GH-5310)Miss Islington (bot)2018-02-191-0/+1
| | | | | (cherry picked from commit dfa015cf77a148d229ddc0a5b063562c9f9664f2) Co-authored-by: chason <chason@gmail.com>
* bpo-32852: Fix trace changing sys.argv to tuple. (GH-5692)Miss Islington (bot)2018-02-171-0/+1
| | | | | (cherry picked from commit 9f4223261fd129ad7b9a09b2b0d625d1bb90b22b) Co-authored-by: Kyle Altendorf <sda@fstab.net>
* bpo-32841: Fix cancellation in awaiting asyncio.Condition (GH-5665) (GH-5683)Miss Islington (bot)2018-02-141-0/+2
| | | | | (cherry picked from commit 5746510b7aef423fa4afc92b2abb919307b1dbb9) Co-authored-by: Bar Harel <bzvi7919@gmail.com>
* bpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995)INADA Naoki2018-02-131-0/+2
| | | (cherry picked from commit d019bc8319ea35e93bf4baa38098ff1b57cd3ee5)
* [3.6] bpo-32370: Use the correct encoding for ipconfig output in the uuid ↵Serhiy Storchaka2018-02-131-0/+2
| | | | | | | | module. (GH-5608). (#5654) (cherry picked from commit da6c3da6c33c6bf794f741e348b9c6d86cc43ec5) Co-authored-by: Segev Finer <segev208@gmail.com>
* bpo-32837: IDLE - require encoding argument for textview.view_file. (GH-5646)Miss Islington (bot)2018-02-121-0/+2
| | | | | | | Using the system and place-dependent default encoding for open() is a bad idea for IDLE's system and location-independent files. (cherry picked from commit 688722cedd6437910ff185ecf94fb3b749ad37f2) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-32826: Add "encoding=utf-8" to open() in idle_test/test_help_about. ↵Miss Islington (bot)2018-02-121-0/+5
| | | | | | | | | | | (GH-5639) GUI test test_file_buttons() only looks at initial ascii-only lines, but failed on systems where open() defaults to 'ascii' because readline() internally reads and decodes far enough ahead to encounter a non-ascii character in CREDITS.txt. (cherry picked from commit f34e03ec0ea6a4cef8d966087c77e616c4a5893b) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>