summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add some tests for soft keywordssoft-keywordsGuido van Rossum2020-05-251-0/+31
|
* Fix D() macro usage for soft keywordsGuido van Rossum2020-05-251-3/+6
|
* Add soft keywordsGuido van Rossum2020-05-253-1/+39
| | | | | | | These are like keywords but they only work in context; they are not reserved except when there is an exact match. This would enable things like match statements.
* [workflow] Use Sphinx problem matcher on GitHub docs builds (GH-20325)Ammar Askar2020-05-252-1/+43
|
* bpo-40688: Use the correct parser in the peg_generator scripts (GH-20235)Lysandros Nikolaou2020-05-256-172/+136
| | | | | | | The scripts in `Tools/peg_generator/scripts` mostly assume that `ast.parse` and `compile` use the old parser, since this was the state of things, while we were developing them. They need to be updated to always use the correct parser. `_peg_parser` is being extended to support both parsing and compiling with both parsers.
* bpo-23082: Better error message for PurePath.relative_to() from pathlib ↵Rotuna2020-05-253-2/+6
| | | | | (GH-19611) Co-authored-by: Sadhana Srinivasan <rotuna@Sadhanas-MBP.fritz.box>
* Closes bpo-40558: update CONTRIBUTING.rst to reflect current branches (GH-19989)Hai Shi2020-05-251-6/+6
|
* bpo-40750: Do not expand the new parser debug flags if Py_BUILD_CORE is not ↵Pablo Galindo2020-05-252-2/+2
| | | | defined (GH-20393)
* bpo-40750: Support -d flag in the new parser (GH-20340)Pablo Galindo2020-05-256-48/+4440
|
* bpo-39573: Fix buildbot failure for tupleobject.c (GH-20391)Dong-hee Na2020-05-261-1/+1
|
* bpo-39573: Convert Py_TYPE() to a static inline function (GH-20290)Dong-hee Na2020-05-264-12/+37
|
* bpo-39245: Fix docs links to the stable ABI (GH-20388)Miro Hrončok2020-05-251-9/+9
| | | Automerge-Triggered-By: @vstinner
* bpo-34397: Remove redundant overflow checks in list and tuple ↵Sergey Fedoseev2020-05-252-15/+4
| | | | implementation. (GH-8757)
* bpo-38972: Fix typos in PowerShell Execution Policies links (GH-20383)Miro Hrončok2020-05-252-2/+2
|
* bpo-40671: Prepare _hashlib for PEP 489 (GH-20180)Christian Heimes2020-05-252-67/+115
|
* bpo-40695: Limit hashlib builtin hash fallback (GH-20259)Christian Heimes2020-05-252-2/+6
| | | | | | | :mod:`hashlib` no longer falls back to builtin hash implementations when OpenSSL provides a hash digest and the algorithm is blocked by security policy. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-35714: Reject null characters in struct format strings (GH-16928)Zackery Spytz2020-05-253-0/+15
| | | | struct.error is now raised if there is a null character in a struct format string.
* bpo-38580: Document that select() accepts iterables, not just sequences ↵Jakub Stasiak2020-05-253-8/+8
| | | | (GH-16832)
* bpo-40334: Support suppressing of multiple optional variables in Pegen ↵Batuhan Taskaya2020-05-241-2/+2
| | | | (GH-20367)
* bpo-36290: Fix keytword collision handling in AST node constructors (GH-12382)Rémi Lapeyre2020-05-245-6/+66
|
* bpo-17050: Remove documentation on argparse.REMAINDER (GH-18661)Albert2020-05-241-13/+0
| | | | | Closes [Issue 17050]() by removing argparse.REMAINDER from the documentation, as discussed on the issue. Automerge-Triggered-By: @rhettinger
* bpo-40443: Remove unused imports in the zoneinfo (GH-20354)Dong-hee Na2020-05-242-4/+0
|
* bpo-37309: Update IDLE NEWS.txt (GH-20356)Terry Jan Reedy2020-05-241-0/+1
|
* bpo-40723: Make IDLE autocomplete test run without __main__.__file__ (GH-20311)Florian Dahlitz2020-05-243-1/+4
| | | | This was the only failure running unittest.main(test.test_idle) after imports.
* bpo-37973: Improve the docstrings of sys.float_info (GH-19218)Zackery Spytz2020-05-241-2/+4
| | | Taken from https://docs.python.org/3/library/sys.html#sys.float_info
* Remove spurious NULL in descrobject.c (GH-20344)Hai Shi2020-05-241-1/+0
| | | Co-authored-by: hai shi <shihai1991@126.com>
* Use Py_ssize_t for the column number in the PEG support code (GH-20341)Pablo Galindo2020-05-241-1/+1
|
* bpo-40405: Fix asyncio.as_completed docs (GH-19753)Bar Harel2020-05-231-5/+5
| | | | | | | | * Fix as_completed docs to correctly state the function return value. * Also, improves the general wording of the as_completed documentation. Co-Authored-By: Rémi Lapeyre <remi.lapeyre@henki.fr> Co-Authored-By: Kyle Stanley <aeros167@gmail.com> Co-Authored-By: Yury Selivanov <yury@edgedb.com>
* bpo-34556: Document addition of upgrade_deps to venv.create (GH-20135)Shantanu2020-05-231-1/+5
|
* bpo-40439: Update broken link in lexical analysis docs (GH-20184)Matteo Bertucci2020-05-221-1/+1
| | | Automerge-Triggered-By: @csabella
* [doc] Add missing space in urllib.request.rst (GH-19860)Sardorbek Imomaliev2020-05-221-1/+1
| | | This is just a typo fix, should I still provide news file?
* Cosmetic smtplib changes (GH-8718)Ville Skyttä2020-05-222-6/+7
| | | | | Some cosmetic smtplib changes here. Let me know if you'd like a bpo/news entry or splitting this PR into two. Automerge-Triggered-By: @maxking
* bpo-40552 Add 'users' variable in code sample (tutorial 4.2). (GH-19992)Antoine2020-05-222-0/+5
| | | | | | | * Add 'users' variable in code sample. * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-40679: Use the function's qualname in certain TypeErrors (GH-20236)Dennis Sweeney2020-05-224-16/+68
| | | | Patch by Dennis Sweeney.
* bpo-40696: Fix a hang that can arise after gen.throw() (GH-20287)Chris Jerdonek2020-05-227-23/+130
| | | | | | | | This updates _PyErr_ChainStackItem() to use _PyErr_SetObject() instead of _PyErr_ChainExceptions(). This prevents a hang in certain circumstances because _PyErr_SetObject() performs checks to prevent cycles in the exception context chain while _PyErr_ChainExceptions() doesn't.
* bpo-9216: hashlib usedforsecurity fixes (GH-20258)Christian Heimes2020-05-226-34/+90
| | | | | | | | | func:`hashlib.new` passed ``usedforsecurity`` to OpenSSL EVP constructor ``_hashlib.new()``. test_hashlib and test_smtplib handle strict security policy better. Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: @tiran
* bpo-40705: Fix use-after-free in _zoneinfo's module_free (GH-20280)Ammar Askar2020-05-221-6/+9
|
* bpo-40730: Remove redundant 'to' (GH-20316)Florian Dahlitz2020-05-221-1/+1
| | | | | @ericvsmith I guess it is correct to merge it into master and not 3.9 directly? Automerge-Triggered-By: @ericvsmith
* Let the argument clinic do the type checking for heapq (GH-20284)Raymond Hettinger2020-05-222-46/+117
|
* bpo-40630: Add tracemalloc.reset_peak (GH-20102)Huon Wilson2020-05-227-1/+138
| | | | | | | The reset_peak function sets the peak memory size to the current size, representing a resetting of that metric. This allows for recording the peak of specific sections of code, ignoring other code that may have had a higher peak (since the most recent `tracemalloc.start()` or tracemalloc.clear_traces()` call).
* Restore missing column of digits (GH-20313)Raymond Hettinger2020-05-221-30/+30
|
* Fix debug output in PEG parser generator (GH-20308)Pablo Galindo2020-05-221-3/+3
|
* bpo-40334: Produce better error messages for non-parenthesized genexps ↵Lysandros Nikolaou2020-05-225-6/+79
| | | | | | (GH-20153) The error message, generated for a non-parenthesized generator expression in function calls, was still the generic `invalid syntax`, when the generator expression wasn't appearing as the first argument in the call. With this patch, even on input like `f(a, b, c for c in d, e)`, the correct error message gets produced.
* [doc] Remove references to obsolete BuildApplet on macOS. (GH-20023)Andre Delfino2020-05-211-8/+2
|
* bpo-40715: Reject dict unpacking on dict comprehensions (GH-20292)Batuhan Taskaya2020-05-213-208/+308
| | | | | Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* bpo-40176: Improve error messages for trailing comma on from import (GH-20294)Batuhan Taskaya2020-05-213-151/+220
|
* Fix typing problems reported by mypy in pegen (GH-20297)Pablo Galindo2020-05-212-27/+23
|
* Reword aware/naive introduction sentence (GH-20175)Mathieu Dupuy2020-05-211-1/+2
| | | | | This is more informative and avoids the question of whether the period should go inside or outside the quotation marks. See also GH-20007.
* bpo-40334: Correctly generate C parser when assigned var is None (GH-20296)Batuhan Taskaya2020-05-211-1/+4
| | | | | When there are 2 negative lookaheads in the same rule, let's say `!"(" blabla "," !")"`, there will the 2 `FunctionCall`'s where assigned value is None. Currently when the `add_var` is called the first one will be ignored but when the second lookahead's var is sent to dedupe it will be returned as `None_1` and this won't be ignored by the declaration generator in the `visit_Alt`. This patch adds an explicit check to `add_var` to distinguish whether if there is a variable or not.
* bpo-40714: Remove compile warning from _zoneinfo.c (GH-20291)Dong-hee Na2020-05-221-2/+4
|