Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision 55c89235247d9dbe8a4463c9c64edc7e48826a44 authored by Miss Islington (bot) on 22 May 2020, 01:14:55 UTC, committed by GitHub on 22 May 2020, 01:14:55 UTC
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. (cherry picked from commit ae145833025b0156ee2a28219e3370f3b27b2a36) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
1 parent b4d08f1
Tip revision: 55c89235247d9dbe8a4463c9c64edc7e48826a44 authored by Miss Islington (bot) on 22 May 2020, 01:14:55 UTC
bpo-40334: Produce better error messages for non-parenthesized genexps (GH-20153)
bpo-40334: Produce better error messages for non-parenthesized genexps (GH-20153)
Tip revision: 55c8923
File | Mode | Size |
---|---|---|
.azure-pipelines | ||
.github | ||
Doc | ||
Grammar | ||
Include | ||
Lib | ||
Mac | ||
Misc | ||
Modules | ||
Objects | ||
PC | ||
PCbuild | ||
Parser | ||
Programs | ||
Python | ||
Tools | ||
m4 | ||
.gitattributes | -rw-r--r-- | 1.8 KB |
.gitignore | -rw-r--r-- | 1.8 KB |
.travis.yml | -rw-r--r-- | 8.3 KB |
CODE_OF_CONDUCT.md | -rw-r--r-- | 630 bytes |
LICENSE | -rw-r--r-- | 12.5 KB |
Makefile.pre.in | -rw-r--r-- | 68.5 KB |
README.rst | -rw-r--r-- | 9.9 KB |
aclocal.m4 | -rw-r--r-- | 13.1 KB |
config.guess | -rwxr-xr-x | 43.1 KB |
config.sub | -rwxr-xr-x | 35.4 KB |
configure | -rwxr-xr-x | 499.1 KB |
configure.ac | -rw-r--r-- | 168.3 KB |
install-sh | -rwxr-xr-x | 15.0 KB |
netlify.toml | -rw-r--r-- | 82 bytes |
pyconfig.h.in | -rw-r--r-- | 44.4 KB |
setup.py | -rw-r--r-- | 108.5 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...