summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 3.7.0b3v3.7.0b3Ned Deily2018-03-2958-129/+589
|
* bpo-32726: macOS 10.6+ installer now builds Tcl/TK 8.6 (GH-6308)Ned Deily2018-03-294-13/+14
| | | | | | | Build and link with private copy of Tcl/Tk 8.6 for the macOS 10.6+ installer. The 10.9+ installer variant already does this. This means that the Python 3.7 provided by the python.org macOS installers no longer need or use any external versions of Tcl/Tk, either system-provided or user- installed, such as ActiveTcl.
* Fix typos '.::' should typically just be '::'. (GH-6165) (GH-6300)Miss Islington (bot)2018-03-293-3/+3
| | | | | (cherry picked from commit 78553138be3b38d361bded8e641a2a4fd65a9d16) Co-authored-by: Julien Palard <julien@palard.fr>
* FIX documentation and NEWS of ThreadedHTTPServer. (GH-6207) (GH-6302)Miss Islington (bot)2018-03-292-3/+6
| | | | | (cherry picked from commit 79c3bab35cce55e6d175aff96a845bc6d932b203) Co-authored-by: Julien Palard <julien@palard.fr>
* [3.7] Fix duplicating words words. (GH-6296) (GH-6297)Serhiy Storchaka2018-03-2811-13/+13
| | | | | Most of them have been added in 3.7. (cherry picked from commit bac2d5ba30339298db7d4caa9c8cd31d807cf081)
* bpo-33126: Document PyBuffer_ToContiguous() (GH-6292) (GH-6294)Miss Islington (bot)2018-03-282-3/+10
| | | | | (cherry picked from commit aa50bf08e64f49d57917ab0b1aadf4308a3168a6) Co-authored-by: Antoine Pitrou <pitrou@free.fr>
* s/the the/the/ (GH-6287)Miss Islington (bot)2018-03-282-2/+2
| | | | | (cherry picked from commit 40a536be5337d3723285d597e2906394b26816a5) Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
* [3.7] bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1. (GH-6283)Miss Islington (bot)2018-03-281-0/+1
| | | | | (cherry picked from commit c0518cde7a8404f310cd3495e77e612820ecad4f) Co-authored-by: Ned Deily <nad@python.org>
* bpo-32726: Do not force IDLE.app to launch in 32-bit mode. (GH-6280)Miss Islington (bot)2018-03-281-4/+0
| | | | | | | | | | Forcing the macOS IDLE.app gui process to launch in 32-mode was a necessary hack for old versions of Tk (Aqua Carbon as in Tk 8.4 and early versions of 8.5); it is not needed for current versions of Tk. Since 32-bit launching will no longer be supported on future releases of macOS, allow IDLE.app to launch in 64-bit mode. (cherry picked from commit df532ab752680f6e359672c2cd40bec8ac848628) Co-authored-by: Ned Deily <nad@python.org>
* bpo-32872: Avoid regrtest compatibility issue with namespace packages. ↵Miss Islington (bot)2018-03-282-1/+2
| | | | | | | (GH-6276) (#6277) (cherry picked from commit e52ac045972a4f75d7f52e4ee0d6de128259134d) Co-authored-by: Ned Deily <nad@python.org>
* Fix senfile typo (GH-6265) (#6274)Miss Islington (bot)2018-03-282-2/+2
| | | | | | * Also in docs (cherry picked from commit 65a34709f60711f7c46031d4c6c420f567bc790a) Co-authored-by: Sam Dunster <me@sdunster.com>
* bpo-32517: re-enable test_read_pty_output on macOS (GH-6112)Ned Deily2018-03-271-1/+0
|
* bpo-33151: Handle submodule resources (GH-6268) (GH-6270)Miss Islington (bot)2018-03-273-6/+37
| | | | | (cherry picked from commit 30e507dff465a31901d87df791a2bac40dc88530) Co-authored-by: Barry Warsaw <barry@python.org>
* bpo-27212: Modify islice recipe to consume initial values preceding start ↵Miss Islington (bot)2018-03-273-7/+85
| | | | | | | (GH-6195) (#GH-6266) (cherry picked from commit da1734c58d2f97387ccc9676074717d38b044128) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-32873: Treat type variables and special typing forms as immutable by ↵Miss Islington (bot)2018-03-263-11/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | copy and pickle (GH-6216) This also fixes python/typingGH-512 This also fixes python/typingGH-511 As was discussed in both issues, some typing forms deserve to be treated as immutable by copy and pickle modules, so that: * copy(X) is X * deepcopy(X) is X * loads(dumps(X)) is X GH- pickled by reference This PR adds such behaviour to: * Type variables * Special forms like Union, Any, ClassVar * Unsubscripted generic aliases to containers like List, Mapping, Iterable This not only resolves inconsistencies mentioned in the issues, but also improves backwards compatibility with previous versions of Python (including 3.6). Note that this requires some dances with __module__ for type variables (similar to NamedTuple) because the class TypeVar itself is define in typing, while type variables should get module where they were defined. https://bugs.python.org/issue32873 (cherry picked from commit 834940375ae88bc95794226dd8eff1f25fba1cf9) Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
* bpo-32844: Fix a subprocess misredirection of a low fd (GH5689)Miss Islington (bot)2018-03-263-1/+53
| | | | | | | | | | | | | bpo-32844: subprocess: Fix a potential misredirection of a low fd to stderr. When redirecting, subprocess attempts to achieve the following state: each fd to be redirected to is less than or equal to the fd it is redirected from, which is necessary because redirection occurs in the ascending order of destination descriptors. It fails to do so in a couple of corner cases, for example, if 1 is redirected to 2 and 0 is closed in the parent. (cherry picked from commit 0e7144b064a19493a146af94175a087b3888c37b) Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com>
* bpo-33141: Have dataclasses.Field pass through __set_name__ to any default ↵Miss Islington (bot)2018-03-263-0/+58
| | | | | | | | argument. (GH-6260) This is part of PEP 487 and the descriptor protocol. (cherry picked from commit de7a2f04d6b9427d568fcb43b6f512f9b4c4bd84) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
* Fix error message in sqlite connection thread check. (GH-6028)Miss Islington (bot)2018-03-261-2/+2
| | | | | (cherry picked from commit 030345c0bfc2f76684666fe5c61e766ba5debfe6) Co-authored-by: Takuya Akiba <469803+iwiwi@users.noreply.github.com>
* Corrected link targets in collections.rst (GH-1052)Miss Islington (bot)2018-03-261-24/+31
| | | | | (cherry picked from commit e105294708ffc78a31566b48468746eb4609abe7) Co-authored-by: Michael Seifert <michaelseifert04@yahoo.de>
* Fix description about SimpleXMLRPCServer constructor parameter ↵Miss Islington (bot)2018-03-261-1/+1
| | | | | | | | bind_and_activate. (GH-776) Passing True as the `bind_and_activate` *do* immediately opening and binding to their socket. (cherry picked from commit e6223579c87b93f3e60d28796f521587d88091d4) Co-authored-by: cocoatomo <cocoatomo77@gmail.com>
* Gitignore gmon.out (GH-5796)Miss Islington (bot)2018-03-261-0/+1
| | | | | | | | | | gmon.out is generated when profiling turned on Full Configuration: ./configure --prefix=$PWD/install --enable-profiling --enable-big-digits=30 --with-pydebug --with-assertions --with-valgrind (cherry picked from commit 95ad3822a2b6287772bd752b6ab493c6d4198d4b) Co-authored-by: Neeraj Badlani <neerajbadlani@gmail.com>
* Fix typo and edit for clarity in the docstrings of sys.float_info. (GH-2251)Miss Islington (bot)2018-03-261-3/+2
| | | | | (cherry picked from commit 0301c9bdd1ebd788d1334cf3fe06c48f35bab0dc) Co-authored-by: Stefano Taschini <taschini@users.noreply.github.com>
* bpo-33096: Fix ttk.Treeview.insert. (GH-6228)Miss Islington (bot)2018-03-263-1/+14
| | | | | | | Allow ttk.Treeview.insert to insert iid that has a false boolean value. Note iid=0 and iid=False would be same. (cherry picked from commit 3ab44c0783eebdff687014f7d14d5dec59b6bd39) Co-authored-by: Garvit Khatri <garvitdelhi@gmail.com>
* Minor fixes to dataclass tests. (GH-6243)Miss Islington (bot)2018-03-261-42/+41
| | | | | | Also, re-enable a test for ClassVars with default_factory. (cherry picked from commit 2b75fc2bc97702224de0fae8ab026ec0cd0706ab) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
* Clarify fd inheritance when close_fds=False. (GH-6240)Miss Islington (bot)2018-03-251-1/+4
| | | | | | Clarify the subprocess documentation. (cherry picked from commit dfb6e54dd8dbd735f55109ad8ee9dfcb6178ede9) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-33053: -m now adds *starting* directory to sys.path (GH-6231) (#6236)Nick Coghlan2018-03-259-76/+104
| | | | | | | | | | | | | | Historically, -m added the empty string as sys.path zero, meaning it resolved imports against the current working directory, the same way -c and the interactive prompt do. This changes the sys.path initialisation to add the *starting* working directory as sys.path[0] instead, such that changes to the working directory while the program is running will have no effect on imports when using the -m switch. (cherry picked from commit d5d9e02dd3c6df06a8dd9ce75ee9b52976420a8b)
* Trivial improvements to dataclasses tests. (GH-6234)Miss Islington (bot)2018-03-251-2/+3
| | | | | (cherry picked from commit 51c9ab42ab84643081d75c83a586afa45d910383) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
* [3.7] bpo-33136: Harden ssl module against CVE-2018-8970 (GH-6229) (GH-6230)Miss Islington (bot)2018-03-253-3/+10
| | | | | | | | | | Harden ssl module against LibreSSL CVE-2018-8970. X509_VERIFY_PARAM_set1_host() is called with an explicit namelen. A new test ensures that NULL bytes are not allowed. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit d02ac25ab0879f1a6de6937573bf00a16b7bd22e) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-33042: Fix pre-initialization sys module configuration (GH-6157)Miss Islington (bot)2018-03-257-12/+296
| | | | | | | | | | | - new test case for pre-initialization of sys.warnoptions and sys._xoptions - restored ability to call these APIs prior to Py_Initialize - updated the docs for the affected APIs to make it clear they can be called before Py_Initialize - also enhanced the existing embedding test cases to check for expected settings in the sys module (cherry picked from commit bc77eff8b96be4f035e665ab35c1d06e22f46491) Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
* bpo-32943: Fix confusing error message for rot13 codec (GH-5869)Miss Islington (bot)2018-03-251-4/+4
| | | | | (cherry picked from commit e4ce9fa89cb542dced553710b05de85202bc4715) Co-authored-by: Xiang Zhang <angwerzx@126.com>
* Fix invalid escape sequence: use raw string. (GH-6225)Miss Islington (bot)2018-03-251-1/+1
| | | | | (cherry picked from commit c42e7aa67ce72a6c4c6cdfe3b0929ca07556d444) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
* bpo-33134: dataclasses: use function dispatch table for hash, instead of a ↵Miss Islington (bot)2018-03-252-40/+39
| | | | | | | | | string lookup which then is tested with if tests. (GH-6222) * Change _hash_action to be a function table lookup, instead of a list of strings which is then tested with if statements. (cherry picked from commit 01d618c5606a239b03ad1269541eddb6e724775d) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
* Trivial dataclass cleanups: (GH-6218)Miss Islington (bot)2018-03-241-23/+26
| | | | | | | | | | | | | - When adding a single element to a list, use .append() instead of += and creating a new list. - For consistency, import the copy module, instead of just deepcopy. This leaves only a module at the class level, instead of a function. - Improve some comments. - Improve some whitespace. - Use tuples instead of lists. - Simplify a test. (cherry picked from commit f96ddade0094d162cb6c2fd7255c5e8a90b5c37d) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
* bpo-33132: Fix reference counting issues in the compiler. (GH-6209)Miss Islington (bot)2018-03-241-19/+12
| | | | | (cherry picked from commit a95d98607efe0c43475b354543e49bf8e240bc6f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.7] bpo-33127: Compatibility patch for LibreSSL 2.7.0 (GH-6210) (GH-6213)Miss Islington (bot)2018-03-243-7/+18
| | | | | | | | | | | | | LibreSSL 2.7 introduced OpenSSL 1.1.0 API. The ssl module now detects LibreSSL 2.7 and only provides API shims for OpenSSL < 1.1.0 and LibreSSL < 2.7. Documentation updates and fixes for failing tests will be provided in another patch set. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 4ca0739c9d97ac7cd45499e0d31be68dc659d0e1) Co-authored-by: Christian Heimes <christian@python.org>
* [3.7] bpo-24334: Remove inaccurate match_hostname call (GH-6211) (#6212)Miss Islington (bot)2018-03-241-5/+0
| | | | | | | | | Commit 141c5e8c re-added match_hostname() call. The resurrection of the function call was never intended and was solely a merge mistake. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit e42ae915095ebca789cc36f3a336a3331fe35945) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-33061: Add missing 'NoReturn' to __all__ in typing.py (GH-6127) (#6162)Ivan Levkivskyi2018-03-232-0/+2
|
* bpo-27428: Fix WindowsRegistryFinder documentation to list appropriate ABC ↵Miss Islington (bot)2018-03-232-1/+3
| | | | | | | (GH-6061) (cherry picked from commit 5cbb84106efefd200933aa31e22abf39267d2557) Co-authored-by: Himanshu Lakhara <himanshulakhara1947@gmail.com>
* bpo-31639: Use threads in http.server module. (GH-5018)Miss Islington (bot)2018-03-233-4/+18
| | | | | (cherry picked from commit 8bcfa02e4b1b65634e526e197588bc600674c80b) Co-authored-by: Julien Palard <julien@palard.fr>
* Fix a reference to the MRE book in re docs (GH-1113)Miss Islington (bot)2018-03-231-10/+8
| | | | | | Reported by Maksym Nikulyak on docs.p.o. (cherry picked from commit a0a42d22d8dff0ec6ea9daa4d9c9e9399f9b4e6c) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
* bpo-33041: Fixed jumping if the function contains an "async for" loop. (GH-6154)Serhiy Storchaka2018-03-234-27/+103
|
* bpo-32999: ast: Convert useless check to assert (GH-6197)Miss Islington (bot)2018-03-231-3/+1
| | | | | (cherry picked from commit c65bf3fe4a2bde424b79e350f36b7aaa3f6476f6) Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
* bpo-32505: dataclasses: raise TypeError if a member variable is of type ↵Miss Islington (bot)2018-03-223-17/+66
| | | | | | | | Field, but doesn't have a type annotation. (GH-6192) If a dataclass has a member variable that's of type Field, but it doesn't have a type annotation, raise TypeError. (cherry picked from commit 56970b8ce9d23269d20a76f13c80e670c856ba7f) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
* bpo-32999: Revert GH-6002 (fc7df0e6) (GH-6189) (GH-6190)Miss Islington (bot)2018-03-221-24/+11
| | | | | | | bpo-33018 (GH-5944) fixed bpo-32999 too. So fc7df0e6 is not required anymore. Revert it except test case. (cherry picked from commit f757b72b2524ce3451d2269f0b8a9f0593a7b27f) Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
* bpo-33018: Improve issubclass() error checking and message. (GH-5944)Miss Islington (bot)2018-03-224-0/+11
| | | | | | | This improves error message for situations when a non-class is checked w.r.t. an abstract base class. (cherry picked from commit 40472dd42de4f7265d456458cd13ad6894d736db) Co-authored-by: jab <jab@users.noreply.github.com>
* Upgrade pip to v9.0.3 and setuptools to v39.0.1 (GH-6184)Miss Islington (bot)2018-03-223-2/+2
| | | | | (cherry picked from commit d93b5161af12291f3f98a260c90cc2975ea9e9cd) Co-authored-by: Donald Stufft <donald@stufft.io>
* bpo-33116: Add 'Field' to dataclasses.__all__. (GH-6182) (GH-6183)Miss Islington (bot)2018-03-213-5/+8
| | | | | | | - Add missing 'Field' to __all__. - Improve tests to catch this. (cherry picked from commit 8e4560a9da6a02aa157dd7df8bd0be0d258c0a73) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
* FIX failure on OSX sem_getvalue (GH-6180) (GH-6181)Miss Islington (bot)2018-03-212-2/+8
| | | | | (cherry picked from commit dec1c7786f642049c2508e909442189dc043b5da) Co-authored-by: Thomas Moreau <thomas.moreau.2010@gmail.com>
* bpo-33078 - Fix queue size on pickling error (GH-6119) (GH-6178)Miss Islington (bot)2018-03-213-2/+23
| | | | | (cherry picked from commit e2f33add635df4fde81be9960bab367e010c19bf) Co-authored-by: Thomas Moreau <thomas.moreau.2010@gmail.com>
* bpo-32896: Fix error when subclassing a dataclass with a field that uses a ↵Miss Islington (bot)2018-03-213-11/+63
| | | | | | | | default_factory (GH-6170) (GH-6171) Fix the way that new annotations in a class are detected. (cherry picked from commit 8f6eccdc64cab735c47620fea948e64b19f83684) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>