summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.8.2v3.8.2Łukasz Langa2020-02-2414-28/+115
|
* bpo-39128: Added algorithm description (GH-18624)Miss Islington (bot)2020-02-241-0/+11
| | | | | | | | | | | GH- [bpo-39128](https://bugs.python.org/issue39128): happy eyeballs description GH- [3.9] 39128 - happy eyeballs description (GH-18624) GH- [3.8] 39128 - happy eyeballs description (GH-18624) https://bugs.python.org/issue39128 (cherry picked from commit 8af4712a16e4b7d1b60f1faec13cd7a88da95f6a) Co-authored-by: idomic <michael.ido@gmail.com>
* Add note to Mac installer ReadMe about macOS 10.15 Gatekeeper changes. ↵Ned Deily2020-02-241-6/+10
| | | | (GH-18647)
* Give proper credit for figuring out and writing PEP-3118 tests. (GH-18644) ↵Miss Islington (bot)2020-02-241-0/+2
| | | | | | | (#18646) (cherry picked from commit b942ba03b8530f26240d4e36567d2ff42d701420) Authored-by: Stefan Krah <skrah@bytereef.org>
* Give proper credits for the memoryview implementation. (GH-18626) (#18642)Miss Islington (bot)2020-02-241-1/+11
| | | | | | (cherry picked from commit ee3bac4cba56b51ce924f13d77b97131eec1a865) Authored-by: Stefan Krah <skrah@bytereef.org>
* bpo-39649: Remove obsolete check for `__args__` in ↵Miss Islington (bot)2020-02-242-8/+2
| | | | | | | | | | bdb.Bdb.format_stack_entry (GH-18531) Appears to be obsolete since 75bb54c3d8. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 4015d1cda3cdba869103779eb6ff32ad798ff885) Co-authored-by: Daniel Hahler <git@thequod.de>
* bpo-39654: Update pyclbr doc to reflect additional information returned ↵Miss Islington (bot)2020-02-242-3/+8
| | | | | | | | | | | (GH-18528) Full nested function and class info makes it a module browser. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit aea045adb8c90394264908670cbc495c5a41b65e) Co-authored-by: Hakan Çelik <hakancelik96@outlook.com>
* bpo-39681: Fix C pickle regression with minimal file-like objects (GH-18592) ↵Miss Islington (bot)2020-02-233-9/+59
| | | | | | | | | | | | (#18630) Fix a regression where the C pickle module wouldn't allow unpickling from a file-like object that doesn't expose a readinto() method. (cherry picked from commit 9f37872e307734666a7169f7be6e3370d3068282) Co-authored-by: Antoine Pitrou <antoine@python.org> Co-authored-by: Antoine Pitrou <pitrou@free.fr>
* [3.8] bpo-39427: Document -X opt options in the CLI --help and the man page ↵Pablo Galindo2020-02-233-2/+73
| | | | | | | | | | (GH-18131) (GH-18133) https://bugs.python.org/issue39427 Automerge-Triggered-By: @pablogsal (cherry picked from commit 41f0ef6abbd304409c55612a08788cdd59fbc8a3) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-39576: Clarify the word size for the 32-bit build. (GH-18616) (#18618)Miss Islington (bot)2020-02-231-2/+2
| | | | | | | (cherry picked from commit b76518d43fb82ed9e5d27025d18c90a23d525c90) Authored-by: Stefan Krah <skrah@bytereef.org>
* bpo-17422: Language reference should specify restrictions on class namespace ↵Miss Islington (bot)2020-02-222-2/+5
| | | | | | | | (GH-18559) The language reference now specifies restrictions on class namespaces. Adapted from a patch by Ethan Furman. (cherry picked from commit fbe2e0bb8a7ee75d0f9d57682436dac7d69e202e) Co-authored-by: ananthan-123 <ananthakrishnan15.2001@gmail.com>
* bpo-39382: Avoid dangling object use in abstract_issubclass() (GH-18530)Miss Islington (bot)2020-02-224-3/+34
| | | | | | | Hold reference of __bases__ tuple until tuple item is done with, because by dropping the reference the item may be destroyed. (cherry picked from commit 1c56f8ffad44478b4214a2bf8eb7cf51c28a347a) Co-authored-by: Yonatan Goldschmidt <yon.goldschmidt@gmail.com>
* bpo-39576: docs: set context for decimal arbitrary precision arithmetic ↵Miss Islington (bot)2020-02-211-8/+58
| | | | | | | | (GH-18594) (#18597) (cherry picked from commit a025d4ca99fb4c652465368e0b4eb03cf4b316b9) Authored-by: Stefan Krah <skrah@bytereef.org>
* fix(doc): set correct RST syntax for c:function (GH-18589)Miss Islington (bot)2020-02-211-2/+2
| | | | | | The current content is not rendered since the syntax is not correct. (cherry picked from commit d4d17fd2cf69e7c8f4cd03fbf2d575370945b952) Co-authored-by: Julien Danjou <julien@danjou.info>
* bpo-38657: Clarify numeric padding behaviour in string formatting (GH-17036)Miss Islington (bot)2020-02-211-2/+3
| | | | | | | | | | | Make the definition of the width more explicit that it includes any extra signs added by other options. https://bugs.python.org/issue38657 Automerge-Triggered-By: @Mariatta (cherry picked from commit 424e5686d82235e08f8108b8bbe034bc91421689) Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
* bpo-39576: Prevent memory error for overly optimistic precisions (GH-18581) ↵Miss Islington (bot)2020-02-213-6/+245
| | | | | | | (#18584) (cherry picked from commit 90930e65455f60216f09d175586139242dbba260) Authored-by: Stefan Krah <skrah@bytereef.org>
* bpo-39184: Fix incorrect return value (GH-18580)Miss Islington (bot)2020-02-201-1/+1
| | | | | | | | https://bugs.python.org/issue39184 Automerge-Triggered-By: @zooba (cherry picked from commit 6c444d0dab8f06cf304263b34beb299101cef3de) Co-authored-by: Steve Dower <steve.dower@python.org>
* Valgrind no longer supports --db-attach=yes. (GH-18568) (#18576)Miss Islington (bot)2020-02-201-1/+1
| | | | | | | | (cherry picked from commit c0cb8beb389da3ba67ad31b1ecc95e100b6292ab) Co-authored-by: Stefan Krah <skrah@bytereef.org> Co-authored-by: Stefan Krah <skrah@bytereef.org>
* Use the new recommended number of repetitions in the refleak tests. ↵Miss Islington (bot)2020-02-201-1/+1
| | | | | | | | | | (GH-18569) (#18574) (cherry picked from commit 1246d892038a693304549f8574e6c2784b91589a) Co-authored-by: Stefan Krah <skrah@bytereef.org> Co-authored-by: Stefan Krah <skrah@bytereef.org>
* Update runall.bat to the latest Windows build system. (GH-18571) (#18573)Miss Islington (bot)2020-02-201-41/+59
| | | | | | | | (cherry picked from commit 9b833e00e447a3b8b6966686bff701f549c66263) Co-authored-by: Stefan Krah <skrah@bytereef.org> Co-authored-by: Stefan Krah <skrah@bytereef.org>
* bpo-39572: Document ’total’ flag of TypedDict (GH-18554)Miss Islington (bot)2020-02-193-3/+29
| | | | | (cherry picked from commit ab6423fe2de0ed5f8a0dc86a9c7070229326b0f0) Co-authored-by: ananthan-123 <ananthakrishnan15.2001@gmail.com>
* bpo-39555: Fix distutils test to handle _d suffix on Windows debug build ↵Miss Islington (bot)2020-02-181-2/+2
| | | | | | | | | | (GH-18357) (GH-18548) https://bugs.python.org/issue39555 Co-authored-by: Steve Dower <steve.dower@python.org> (cherry picked from commit ab0d892288f3058856a8213333e8c3e4ed8a562b)
* bpo-39432: Implement PEP-489 algorithm for non-ascii "PyInit_*" symbol names ↵Miss Islington (bot)2020-02-183-1/+23
| | | | | | | | | | | in distutils (GH-18150) (GH-18546) Make it export the correct init symbol also on Windows. https://bugs.python.org/issue39432 (cherry picked from commit 9538bc9185e934bee2bd5ae2cda2b2e92a61906d) Co-authored-by: Stefan Behnel <stefan_ml@behnel.de>
* Post 3.8.2rc2Łukasz Langa2020-02-181-1/+1
|
* Merge tag 'v3.8.2rc2' into 3.8Łukasz Langa2020-02-1814-25/+107
|\ | | | | | | Python 3.8.2rc2
| * Python 3.8.2rc2v3.8.2rc2Łukasz Langa2020-02-1714-25/+107
| |
* | [3.8] bpo-39546: argparse: Honor allow_abbrev=False for specified ↵Miss Islington (bot)2020-02-184-28/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | prefix_chars (GH-18337) (GH-18543) When `allow_abbrev` was first added, disabling the abbreviation of long options broke the grouping of short flags ([bpo-26967](https://bugs.python.org/issue26967)). As a fix, b1e4d1b603 (contained in v3.8) ignores `allow_abbrev=False` for a given argument string if the string does _not_ start with "--" (i.e. it doesn't look like a long option). This fix, however, doesn't take into account that long options can start with alternative characters specified via `prefix_chars`, introducing a regression: `allow_abbrev=False` has no effect on long options that start with an alternative prefix character. The most minimal fix would be to replace the "starts with --" check with a "starts with two prefix_chars characters". But `_get_option_tuples` already distinguishes between long and short options, so let's instead piggyback off of that check by moving the `allow_abbrev` condition into `_get_option_tuples`. https://bugs.python.org/issue39546 (cherry picked from commit 8edfc47baec7ff4cb1b9db83dd35c8ffc1d498a4) Co-authored-by: Kyle Meyer <kyle@kyleam.com> https://bugs.python.org/issue39546 Automerge-Triggered-By: @encukou
* | bpo-39663: IDLE: Add additional tests for pyparse (GH-18536)Miss Islington (bot)2020-02-183-2/+17
|/ | | | | | | | Test when find_good_parse_start should return 0. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit ffda25f6b825f3dee493b6f0746266a4dd6989f0) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* [3.8] bpo-39453: Fix contains method of list to hold strong references ↵Dong-hee Na2020-02-173-3/+16
| | | | (GH-18204)
* bpo-32892: Update the documentation for handling constants in AST. (GH-18514)Miss Islington (bot)2020-02-172-3/+13
| | | | | (cherry picked from commit 85a2eef473a2c9ed3ab9c6ee339891fe99adbbc9) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Revert "[3.8] bpo-27657: Fix urlparse() with numeric paths (GH-16839)" ↵Senthil Kumaran2020-02-163-7/+30
| | | | | | | | | | | | | | | | | | | | | | | (GH-18525) This reverts commit 0f3187c1ce3b3ace60f6c1691dfa3d4e744f0384. The change broke the backwards compatibility of parsing behavior in a patch release of Python (3.8.1). A decision was taken to revert this patch in 3.8.2. In https://bugs.python.org/issue27657 it was decided that the previous behavior like >>> urlparse('localhost:8080') ParseResult(scheme='', netloc='', path='localhost:8080', params='', query='', fragment='') >>> urlparse('undefined:8080') ParseResult(scheme='', netloc='', path='undefined:8080', params='', query='', fragment='') needs to be preserved in patch releases as number of users rely upon it. Explicitly mention the releases involved with the revert in NEWS. Adopt the wording suggested by @ned-deily.
* [3.8] closes bpo-39630: Update pointers to string literals to be const char ↵Benjamin Peterson2020-02-143-4/+4
| | | | | | | | *. (GH-18511) (cherry picked from commit 7386a70746cf9aaf2d95db75d9201fb124f085df) Co-authored-by: Andy Lester <andy@petdance.com>
* closes bpo-39619 Fix os.chroot on HP-UX 11.31 (GH-18495)Miss Islington (bot)2020-02-143-1/+26
| | | | | | | | Setting `-D_XOPEN_SOURCE=700` on HP-UX causes system functions such as chroot to be undefined. This change stops `_XOPEN_SOURCE` begin set on HP-UX Co-authored-by: Benjamin Peterson <benjamin@python.org> (cherry picked from commit a9edf44a2de9b23a1690b36cdfeed7b41ab763bd) Co-authored-by: Ian Norton <inorton@gmail.com>
* bpo-39545: Document changes in the support of await in f-strings. (GH-18456)Miss Islington (bot)2020-02-142-0/+10
| | | | | | https://bugs.python.org/issue39545 (cherry picked from commit f632736023502816f2e6bd714d1b48c81aa2ccc1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.8] bpo-39606: allow closing async generators that are already closed ↵Miss Islington (bot)2020-02-133-6/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-18475) (GH-18501) The fix for [bpo-39386](https://bugs.python.org/issue39386) attempted to make it so you couldn't reuse a agen.aclose() coroutine object. It accidentally also prevented you from calling aclose() at all on an async generator that was already closed or exhausted. This commit fixes it so we're only blocking the actually illegal cases, while allowing the legal cases. The new tests failed before this patch. Also confirmed that this fixes the test failures we were seeing in Trio with Python dev builds: https://github.com/python-trio/trio/pull/1396 https://bugs.python.org/issue39606 (cherry picked from commit 925dc7fb1d0db85dc137afa4cd14211bf0d67414) Co-authored-by: Nathaniel J. Smith <njs@pobox.com> https://bugs.python.org/issue39606 Automerge-Triggered-By: @njsmith
* bpo-39184: Add audit events to functions in `fcntl`, `msvcrt`, `os`, ↵Steve Dower2020-02-1315-17/+314
| | | | | | `resource`, `shutil`, `signal`, `syslog` (GH-18407) Co-authored-by: Saiyang Gou <gousaiyang@163.com>
* closes bpo-39621: Make buf arg to md5_compress be const. (GH-18497)Miss Islington (bot)2020-02-131-2/+2
| | | | | (cherry picked from commit 597ebed748d0b0c061f8c108bd98270d103286c1) Co-authored-by: Andy Lester <andy@petdance.com>
* bpo-39474: Fix AST pos for expressions like (a)(b), (a)[b] and (a).b. (GH-18477)Miss Islington (bot)2020-02-123-18/+47
| | | | | (cherry picked from commit 6e619c48b8e804ece9521453fc8da0640a04d5b1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-21016: pydoc and trace use sysconfig (GH-18476)Miss Islington (bot)2020-02-123-6/+9
| | | | | | | | | | | bpo-21016, bpo-1294959: The pydoc and trace modules now use the sysconfig module to get the path to the Python standard library, to support uncommon installation path like /usr/lib64/python3.9/ on Fedora. Co-Authored-By: Jan Matějek <jmatejek@suse.com> (cherry picked from commit 4fac7ed43ebf1771a8fe86fdfe7b9991f3be78cd) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-39219: Fix SyntaxError attributes in the tokenizer. (GH-17828)Miss Islington (bot)2020-02-123-5/+47
| | | | | | | * Always set the text attribute. * Correct the offset attribute for non-ascii sources. (cherry picked from commit 0cc6b5e559b8303b18fdd56c2befd900fe7b5e35) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-39605: Remove a cast that causes a warning. (GH-18473)Miss Islington (bot)2020-02-121-1/+1
| | | | | (cherry picked from commit 95905ce0f41fd42eb1ef60ddb83f057401c3d52f) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-39595: Improve zipfile.Path performance (GH-18406) (GH-18472)Miss Islington (bot)2020-02-127-68/+254
| | | | | | | | | | | | | | | | | | | | | | | * Improve zipfile.Path performance on zipfiles with a large number of entries. * 📜🤖 Added by blurb_it. * Add bpo to blurb * Sync with importlib_metadata 1.5 (6fe70ca) * Update blurb. * Remove compatibility code * Add stubs module, omitted from earlier commit Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit e5bd73632e77dc5ab0cab77e48e94ca5e354be8a) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* closes bpo-39605: Fix some casts to not cast away const. (GH-18453)Miss Islington (bot)2020-02-129-35/+35
| | | | | | | | | | | | | | | | | | gcc -Wcast-qual turns up a number of instances of casting away constness of pointers. Some of these can be safely modified, by either: Adding the const to the type cast, as in: - return _PyUnicode_FromUCS1((unsigned char*)s, size); + return _PyUnicode_FromUCS1((const unsigned char*)s, size); or, Removing the cast entirely, because it's not necessary (but probably was at one time), as in: - PyDTrace_FUNCTION_ENTRY((char *)filename, (char *)funcname, lineno); + PyDTrace_FUNCTION_ENTRY(filename, funcname, lineno); These changes will not change code, but they will make it much easier to check for errors in consts (cherry picked from commit e6be9b59a911626d6597fe148c32f0342bd2bd24) Co-authored-by: Andy Lester <andy@petdance.com>
* docs: macos - change "versiona" to "versions" (GH-18467) (GH-18469)Miss Islington (bot)2020-02-121-1/+1
| | | | | (cherry picked from commit 029e8401b7741cc0964b5f38d2c2264749dbff6b) Co-authored-by: @RandyMcMillan <randy.lee.mcmillan@gmail.com>
* bpo-39299: Add more tests for mimetypes and its cli. (GH-17949)Miss Islington (bot)2020-02-112-5/+85
| | | | | | | | | | * Add tests for case insensitive check of types and extensions as fallback. * Add tests for data url with no comma. * Add tests for read_mime_types. * Add tests for the mimetypes cli and refactor __main__ code to private function. * Restore mimetypes.knownfiles value at the end of the test. (cherry picked from commit d8efc1495194228c3a4cd472200275d6491d8e2d) Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
* Post 3.8.2rc1Łukasz Langa2020-02-111-1/+1
|
* Merge tag 'v3.8.2rc1' into 3.8Łukasz Langa2020-02-1162-165/+705
|\ | | | | | | Python 3.8.2rc1
| * Python 3.8.2rc1v3.8.2rc1Łukasz Langa2020-02-1062-165/+705
| |
* | bpo-38374: Remove weakref.ReferenceError from docs (GH-18452)Miss Islington (bot)2020-02-112-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | Reflecting changes to the code, removed weakref.ReferenceError from weakref.rst and exceptions.rst. Issue submitter provided evidence that the `weakref.ReferenceError` alias for `ReferenceError` was removed from the code in 2007. Working with @gvanrossum at PyCascades CPython sprint we looked at the code and confirmed that `weakref.ReferenceError` was no longer in `weakref.py`. Based on that analysis I removed references `weakref.ReferenceError` from the two documents where it was still being referenced: `weakref.rst` and `exceptions.rst`. https://bugs.python.org/issue38374 (cherry picked from commit 4eb9f4313cfaea6a9611221024a1c54f5662cc37) Co-authored-by: Roger Hurwitz <rogerhurwitz@gmail.com>
* | bpo-39600: Adjust code, add idlelib/NEWS item (GH-18449)Miss Islington (bot)2020-02-112-4/+4
| | | | | | | | | | | | Complete previous patch. (cherry picked from commit 96ce22706735779cf8cc46eaaa5ac61359364b5a) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>