summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-41211: Doc: Fix PyLong_FromUnicode (GH-21331)Inada Naoki2020-07-051-3/+1
| | | PyUnicode_EncodeDecimal is not used actually.
* bpo-41211: Doc: Fix PyLong_FromUnicodeObject (GH-21325)Miss Islington (bot)2020-07-051-3/+1
| | | | | | It doesn't use PyUnicode_EncodeDecimal. It uses a private API instead. (cherry picked from commit 9c8441712230660fedac818ed50e7cdd89e4c51d) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* Uncomment Py_DEPRECATED for Py_UNICODE APIs (GH-21318)Miss Islington (bot)2020-07-052-6/+6
| | | | | | | | PyUnicode_EncodeDecimal and PyUnicode_TransformDecimalToASCII are deprecated since Python 3.3. But Py_DEPRECATED(3.3) was commented out. (cherry picked from commit 13c90e82b6a1c3baff7f48f1bdc38058f6072f04) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* bpo-33864: Clarify the docs for typing.ByteString (GH-21311)Miss Islington (bot)2020-07-041-1/+1
| | | | | (cherry picked from commit b40e434386cd94a367d4a256e3364771140160e7) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-21222: Fix improperly merged change so that final hooks are called ↵Steve Dower2020-07-031-2/+2
| | | | before types are cleared (GH-21304)
* bpo-41162: Clear audit hooks later during finalization (GH-21222)Steve Dower2020-07-035-45/+16
| | | Co-authored-by: Konge <zkonge@outlook.com>
* bpo-41180: Audit code.__new__ when unmarshalling (GH-21271)Miss Islington (bot)2020-07-031-0/+6
| | | | | (cherry picked from commit d160e0f8e283d0a8737644588b38e8c6a07c134f) Co-authored-by: tkmikan <36260601+tkmikan@users.noreply.github.com>
* Post 3.9.0b4Łukasz Langa2020-07-031-1/+1
|
* Merge tag 'v3.9.0b4' into 3.9Łukasz Langa2020-07-0363-114/+606
|\ | | | | | | Python 3.9.0b4
| * Python 3.9.0b4v3.9.0b4Łukasz Langa2020-07-0263-114/+606
| |
* | [3.9] bpo-41194: The _ast module cannot be loaded more than once (GH-21290) ↵Victor Stinner2020-07-033-2102/+2013
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-21292) * bpo-41194: Pass module state in Python-ast.c (GH-21284) Rework asdl_c.py to pass the module state to functions in Python-ast.c, instead of using astmodulestate_global. Handle also PyState_AddModule() failure in init_types(). (cherry picked from commit 74419f0c64959bb8392fcf3659058410423038e1) * bpo-41194: The _ast module cannot be loaded more than once (GH-21290) Fix a crash in the _ast module: it can no longer be loaded more than once. It now uses a global state rather than a module state. * Move _ast module state: use a global state instead. * Set _astmodule.m_size to -1, so the extension cannot be loaded more than once. (cherry picked from commit 91e1bc18bd467a13bceb62e16fbc435b33381c82)
* | Improve code organization for the random module (GH-21161) (GH-21163)Miss Islington (bot)2020-07-031-177/+176
| |
* | bpo-39960: Allow heap types in the "Carlo Verre" hack check that override ↵Miss Islington (bot)2020-07-034-11/+120
| | | | | | | | | | | | | | | | "tp_setattro()" (GH-21092) Automerge-Triggered-By: @gvanrossum (cherry picked from commit 148f32913573c29250dfb3f0d079eb8847633621) Co-authored-by: scoder <stefan_ml@behnel.de>
* | Remove extraneous file from the Docs folder (GH-21286)Miss Islington (bot)2020-07-021-0/+0
|/ | | | | (cherry picked from commit 67673b08ea302174ca9c6559c04311550ae9f189) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-41193: Ignore OSError in readline write_history() (GH-21279)Miss Islington (bot)2020-07-022-3/+7
| | | | | | | | The write_history() atexit function of the readline completer now ignores any OSError to ignore error if the filesystem is read-only, instead of only ignoring FileNotFoundError and PermissionError. (cherry picked from commit 0ab917e07ed64c6bfde6f6e791f9b28acc97b510) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.9] bpo-41043: Escape literal part of the path for glob(). (GH-20994). ↵Serhiy Storchaka2020-07-0224-30/+40
| | | | | (GH-21275) (cherry picked from commit 935586845815f5b4c7814794413f6a812d4bd45f)
* bpo-40967: Remove deprecated asyncio.Task.current_task() and ↵Miss Islington (bot)2020-07-027-270/+9
| | | | | | | asyncio.Task.all_tasks() (GH-20874) (cherry picked from commit 004e64e8059fe68a72890314673282f2e60d5ce1) Co-authored-by: Rémi Lapeyre <remi.lapeyre@lenstra.fr>
* bpo-41158: IDLE: rewrite the code for handling file encoding (GH-21215)Miss Islington (bot)2020-07-011-152/+41
| | | | | (cherry picked from commit 694d31e714074176f0c324f95948b75dc768c091) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.9] Add lysnikolaou to CODEOWNERS for the new parser (GH-21253)Lysandros Nikolaou2020-07-011-2/+3
|
* Doc: Minor fix to init config C API documentation (GH-21198)Miss Islington (bot)2020-07-011-2/+2
| | | | | | Co-authored-by: Tomer Vromen <tomer.vromen@intel.com> (cherry picked from commit 741008a57bdc95090b8be6ded5a9fd3f17f7bf21) Co-authored-by: tomerv <tomerv@gmail.com>
* bpo-41161 Add news entry for libmpdec-2.5.0 (GH-21243) (#21244)Miss Islington (bot)2020-06-301-0/+2
| | | | | (cherry picked from commit 1648c99932f39f1c60972bb114e6a7bd65523818) Authored-by: Stefan Krah <skrah@bytereef.org>
* Update FAQ release schedule and estimated users (GH-21180)Miss Islington (bot)2020-06-301-4/+4
| | | | | | | | Update FAQ to include: * The new yearly release schedule from PEP 602 * Estimated users from "tens of thousands" to "millions" (cherry picked from commit 3fa4799c3f9d9de7cac30e5db3627e9e125b9ce5) Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
* bpo-41123: Remove PyUnicode_AsUnicodeCopy in 3.10 (GH-21227)Inada Naoki2020-06-301-0/+2
|
* bpo-41152: IDLE: always use UTF-8 for standard IO streams (GH-21214)Miss Islington (bot)2020-06-305-52/+10
| | | | | (cherry picked from commit 2515a28230b1a011205f30263da6b01c6bd167a3) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface ↵Miss Islington (bot)2020-06-293-2/+15
| | | | | | | | | | | (GH-21033) The __hash__() methods of classes IPv4Interface and IPv6Interface had issue of generating constant hash values of 32 and 128 respectively causing hash collisions. The fix uses the hash() function to generate hash values for the objects instead of XOR operation (cherry picked from commit b30ee26e366bf509b7538d79bfec6c6d38d53f28) Co-authored-by: Ravi Teja P <rvteja92@gmail.com>
* [3.9] bpo-41084: Fix test_fstring failure when using the old parser (GH-21212)Lysandros Nikolaou2020-06-291-4/+8
|
* Update libmpdec license dates (GH-21216)Miss Islington (bot)2020-06-291-1/+1
| | | | | (cherry picked from commit a3ad95dd2176b529fb6a9f763955b5cc1b499dbb) Authored-by: Stefan Krah <skrah@bytereef.org>
* bpo-41048: mimetypes should read the rule file using UTF-8, not the locale ↵Miss Islington (bot)2020-06-294-1/+16
| | | | | | | encoding (GH-20998) (cherry picked from commit 7f569c9bc0079906012b3034d30fe8abc742e7fc) Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
* bpo-41123: Doc: PyLong_FromUnicode will be removed in 3.10 (GH-21205)Inada Naoki2020-06-291-1/+1
|
* bpo-40874 Update the required libmpdec version for the decimal module ↵Miss Islington (bot)2020-06-282-2/+3
| | | | | | | (GH-21202) (cherry picked from commit 8bea91b5e9ea07ca93958e131b436024f0b1b1cf) Authored-by: Stefan Krah <skrah@bytereef.org>
* bpo-41138: Fix trace CLI for non-UTF-8 files. (GH-21177)Miss Islington (bot)2020-06-283-16/+27
| | | | | | Fix also a resource warning when store counts and module info. (cherry picked from commit 04cdeb7a5617c48102f45b965e683b12cdf934f8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-41144: Fix IDLE open module error (GH-21182)Miss Islington (bot)2020-06-284-7/+20
| | | | | | | | Could not open os.path. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 8ab77c6f9fb6ef86af8f6b8722a2fcb37438edd0) Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
* [3.9] bpo-38870: Extend subject of ast.unparse warnings (GH-21053) (GH-21191)Pablo Galindo2020-06-281-1/+6
| | | | | | | | - Mention that some compiler optimizations might not roundtrip exactly (such as constant tuples and frozensets). - Add a warning about it might raise RecursionError on very complex expressions due to the recursive unparsing aspect of ast.unparse (cherry picked from commit 8df1016)
* [3.9] Add soft keywords to the documentation (GH-21185) (GH-21187)Pablo Galindo2020-06-281-0/+16
| | | | | (cherry picked from commit 89e82c4) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* [3.9] bpo-35975: Only use cf_feature_version if PyCF_ONLY_AST in cf_flags ↵Guido van Rossum2020-06-286-5/+33
| | | | (#21022)
* [3.9] bpo-41076: Pre-feed the parser with the f-string expression location ↵Pablo Galindo2020-06-285-2688/+2471
| | | | | | (GH-21054) (GH-21190) This commit changes the parsing of f-string expressions with the new parser. The parser gets pre-fed with the location of the expression itself (not the f-string, which was what we were doing before). This allows us to completely skip the shifting of the AST nodes after the parsing is completed.. (cherry picked from commit 1f0f4abb110b9fbade6175842b6a26ab0b8df6dd)
* [3.9] bpo-40769: Allow extra surrounding parentheses for invalid annotated ↵Pablo Galindo2020-06-273-207/+284
| | | | | assignment rule (GH-20387) (GH-21186) (cherry picked from commit c8f29ad986f8274fc5fbf889bdd2a211878856b9)
* bpo-41084: Adjust message when an f-string expression causes a SyntaxError ↵Miss Islington (bot)2020-06-273-3/+29
| | | | | | | | (GH-21084) Prefix the error message with `fstring: `, when parsing an f-string expression throws a `SyntaxError`. (cherry picked from commit 2e0a920e9eb540654c0bb2298143b00637dc5961) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* [3.9] bpo-41132: Use pymalloc allocator in the f-string parser (GH-21173) ↵Lysandros Nikolaou2020-06-272-14/+14
| | | | | | | (GH-21183) (cherry picked from commit 6dcbc2422de9e2a7ff89a4689572d84001e230b2) Automerge-Triggered-By: @pablogsal
* Remove dead code from tracemalloc (GH-21029)Miss Islington (bot)2020-06-271-4/+0
| | | | | | | | tracemalloc_get_frame() checked filename == NULL two times in a row. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 9cfcdb7d6e4d09bde63bc7116b2ab0d96724527e) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-41100: clarify NEWS item about macOS 11 support (GH-21174)Miss Islington (bot)2020-06-271-1/+7
| | | | | (cherry picked from commit 2f168c6356f92c38ae7751d2faf2b266a9356229) Co-authored-by: Ned Deily <nad@python.org>
* [3.9] bpo-41119: Output correct error message for list/tuple followed by ↵Lysandros Nikolaou2020-06-262-325/+289
| | | | | colon (GH-21160) (GH-21172) (cherry picked from commit 4b85e60601489f9ee9dd2909e28d89a31566887c)
* [3.9] bpo-41069: Make TESTFN and the CWD for tests containing non-ascii ↵Serhiy Storchaka2020-06-2523-76/+108
| | | | | | characters. (GH-21035). (GH-21156) (cherry picked from commit 700cfa8c90a90016638bac13c4efd03786b2b2a0)
* BPO-41100: Support macOS 11 when building (GH-21113)Miss Islington (bot)2020-06-253-2/+3
| | | | | (cherry picked from commit 8ea6353f60625c96ce96588c70ff24a77f8c71f9) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* bpo-41112: Fix test_peg_generator on non-UTF-8 locales. (GH-21138)Miss Islington (bot)2020-06-251-2/+2
| | | | | (cherry picked from commit aad8f0eeca93b2150760b5e59ed0495e47d1be1e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-41113: Fix test_warnings on non-Western locales. (GH-21143)Miss Islington (bot)2020-06-251-3/+3
| | | | | (cherry picked from commit 0f8ec1fff01173803645ad6a8aea24997bf66fc1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.9] bpo-41009: fix requires_OS_version() class decorator (GH-20942) (GH-20947)Christian Heimes2020-06-252-19/+21
| | | | | | | | Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: @tiran. (cherry picked from commit bb6ec14479f18c32e71e43f2785f177aa17aabbd) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-35773: Fix test_bdb on non-UTF-8 locales. (GH-21136)Miss Islington (bot)2020-06-251-1/+1
| | | | | (cherry picked from commit 94eee69e9b3a7e7d33142a47ffea560beb8f1596) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-40204: Pin Sphinx version to 2.3.1 in ``Doc/Makefile``. (GH-21141)Miss Islington (bot)2020-06-252-1/+2
| | | | | (cherry picked from commit 589e8fe07934a8585d6c5c31d12ae5f766b8fec7) Co-authored-by: Ned Deily <nad@python.org>
* bpo-39580: add check for CLI installation on macOS (GH-20271)Miss Islington (bot)2020-06-252-1/+5
| | | | | | Adds a simple check for whether or not the package is being installed in the GUI or using installer on the command line. This addresses an issue where CLI-based software management tools (such as Munki) unexpectedly open Finder windows into a GUI session during installation runs. (cherry picked from commit 5f190d2cc60cd82a604cbffb58b6ca8f40350a7a) Co-authored-by: Rick Heil <rickheil@partnersandsimons.com>