Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add some tests for soft keywordssoft-keywords | Guido van Rossum | 2020-05-25 | 1 | -0/+31 |
| | |||||
* | Fix D() macro usage for soft keywords | Guido van Rossum | 2020-05-25 | 1 | -3/+6 |
| | |||||
* | Add soft keywords | Guido van Rossum | 2020-05-25 | 3 | -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 Askar | 2020-05-25 | 2 | -1/+43 |
| | |||||
* | bpo-40688: Use the correct parser in the peg_generator scripts (GH-20235) | Lysandros Nikolaou | 2020-05-25 | 6 | -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 ↵ | Rotuna | 2020-05-25 | 3 | -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 Shi | 2020-05-25 | 1 | -6/+6 |
| | |||||
* | bpo-40750: Do not expand the new parser debug flags if Py_BUILD_CORE is not ↵ | Pablo Galindo | 2020-05-25 | 2 | -2/+2 |
| | | | | defined (GH-20393) | ||||
* | bpo-40750: Support -d flag in the new parser (GH-20340) | Pablo Galindo | 2020-05-25 | 6 | -48/+4440 |
| | |||||
* | bpo-39573: Fix buildbot failure for tupleobject.c (GH-20391) | Dong-hee Na | 2020-05-26 | 1 | -1/+1 |
| | |||||
* | bpo-39573: Convert Py_TYPE() to a static inline function (GH-20290) | Dong-hee Na | 2020-05-26 | 4 | -12/+37 |
| | |||||
* | bpo-39245: Fix docs links to the stable ABI (GH-20388) | Miro Hrončok | 2020-05-25 | 1 | -9/+9 |
| | | | Automerge-Triggered-By: @vstinner | ||||
* | bpo-34397: Remove redundant overflow checks in list and tuple ↵ | Sergey Fedoseev | 2020-05-25 | 2 | -15/+4 |
| | | | | implementation. (GH-8757) | ||||
* | bpo-38972: Fix typos in PowerShell Execution Policies links (GH-20383) | Miro Hrončok | 2020-05-25 | 2 | -2/+2 |
| | |||||
* | bpo-40671: Prepare _hashlib for PEP 489 (GH-20180) | Christian Heimes | 2020-05-25 | 2 | -67/+115 |
| | |||||
* | bpo-40695: Limit hashlib builtin hash fallback (GH-20259) | Christian Heimes | 2020-05-25 | 2 | -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 Spytz | 2020-05-25 | 3 | -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 Stasiak | 2020-05-25 | 3 | -8/+8 |
| | | | | (GH-16832) | ||||
* | bpo-40334: Support suppressing of multiple optional variables in Pegen ↵ | Batuhan Taskaya | 2020-05-24 | 1 | -2/+2 |
| | | | | (GH-20367) | ||||
* | bpo-36290: Fix keytword collision handling in AST node constructors (GH-12382) | Rémi Lapeyre | 2020-05-24 | 5 | -6/+66 |
| | |||||
* | bpo-17050: Remove documentation on argparse.REMAINDER (GH-18661) | Albert | 2020-05-24 | 1 | -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 Na | 2020-05-24 | 2 | -4/+0 |
| | |||||
* | bpo-37309: Update IDLE NEWS.txt (GH-20356) | Terry Jan Reedy | 2020-05-24 | 1 | -0/+1 |
| | |||||
* | bpo-40723: Make IDLE autocomplete test run without __main__.__file__ (GH-20311) | Florian Dahlitz | 2020-05-24 | 3 | -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 Spytz | 2020-05-24 | 1 | -2/+4 |
| | | | Taken from https://docs.python.org/3/library/sys.html#sys.float_info | ||||
* | Remove spurious NULL in descrobject.c (GH-20344) | Hai Shi | 2020-05-24 | 1 | -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 Galindo | 2020-05-24 | 1 | -1/+1 |
| | |||||
* | bpo-40405: Fix asyncio.as_completed docs (GH-19753) | Bar Harel | 2020-05-23 | 1 | -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) | Shantanu | 2020-05-23 | 1 | -1/+5 |
| | |||||
* | bpo-40439: Update broken link in lexical analysis docs (GH-20184) | Matteo Bertucci | 2020-05-22 | 1 | -1/+1 |
| | | | Automerge-Triggered-By: @csabella | ||||
* | [doc] Add missing space in urllib.request.rst (GH-19860) | Sardorbek Imomaliev | 2020-05-22 | 1 | -1/+1 |
| | | | This is just a typo fix, should I still provide news file? | ||||
* | Cosmetic smtplib changes (GH-8718) | Ville Skyttä | 2020-05-22 | 2 | -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) | Antoine | 2020-05-22 | 2 | -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 Sweeney | 2020-05-22 | 4 | -16/+68 |
| | | | | Patch by Dennis Sweeney. | ||||
* | bpo-40696: Fix a hang that can arise after gen.throw() (GH-20287) | Chris Jerdonek | 2020-05-22 | 7 | -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 Heimes | 2020-05-22 | 6 | -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 Askar | 2020-05-22 | 1 | -6/+9 |
| | |||||
* | bpo-40730: Remove redundant 'to' (GH-20316) | Florian Dahlitz | 2020-05-22 | 1 | -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 Hettinger | 2020-05-22 | 2 | -46/+117 |
| | |||||
* | bpo-40630: Add tracemalloc.reset_peak (GH-20102) | Huon Wilson | 2020-05-22 | 7 | -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 Hettinger | 2020-05-22 | 1 | -30/+30 |
| | |||||
* | Fix debug output in PEG parser generator (GH-20308) | Pablo Galindo | 2020-05-22 | 1 | -3/+3 |
| | |||||
* | bpo-40334: Produce better error messages for non-parenthesized genexps ↵ | Lysandros Nikolaou | 2020-05-22 | 5 | -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 Delfino | 2020-05-21 | 1 | -8/+2 |
| | |||||
* | bpo-40715: Reject dict unpacking on dict comprehensions (GH-20292) | Batuhan Taskaya | 2020-05-21 | 3 | -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 Taskaya | 2020-05-21 | 3 | -151/+220 |
| | |||||
* | Fix typing problems reported by mypy in pegen (GH-20297) | Pablo Galindo | 2020-05-21 | 2 | -27/+23 |
| | |||||
* | Reword aware/naive introduction sentence (GH-20175) | Mathieu Dupuy | 2020-05-21 | 1 | -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 Taskaya | 2020-05-21 | 1 | -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 Na | 2020-05-22 | 1 | -2/+4 |
| |