cpython/Python
Nick Coghlan 5dbe0f59b7
bpo-37757: Disallow PEP 572 cases that expose implementation details (GH-15131)
- drop TargetScopeError in favour of raising SyntaxError directly
  as per the updated PEP 572
- comprehension iteration variables are explicitly local, but
  named expression targets in comprehensions are nonlocal or
  global. Raise SyntaxError as specified in PEP 572
- named expression targets in the outermost iterable of a
  comprehension have an ambiguous target scope. Avoid resolving
  that question now by raising SyntaxError. PEP 572
  originally required this only for cases where the bound name
  conflicts with the iteration variable in the comprehension,
  but CPython can't easily restrict the exception to that case
  (as it doesn't know the target variable names when visiting
  the outermost iterator expression)
2019-08-25 23:45:40 +10:00
..
clinic bpo-37942: Improve argument clinic float converter (GH-15470) 2019-08-24 19:10:39 -07:00
_warnings.c bpo-37547: add _PyObject_CallMethodOneArg (GH-14685) 2019-07-11 17:59:05 +09:00
asdl.c
ast.c bpo-32912: Revert SyntaxWarning on invalid escape sequences. (GH-15195) 2019-08-10 00:19:07 -07:00
ast_opt.c
ast_unparse.c
bltinmodule.c Adjust builtins.zip() docstring to better communicate its signature (GH-14833) 2019-07-18 11:19:25 -07:00
bootstrap_hash.c Fix typos in comments, docs and test names (#15018) 2019-07-30 18:16:13 -04:00
ceval.c bpo-34880: Add the LOAD_ASSERTION_ERROR opcode. (GH-15073) 2019-08-25 12:44:09 +03:00
ceval_gil.h Revert "bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (gh-13714)" (GH-13780) 2019-06-03 18:14:24 +02:00
codecs.c bpo-37751: Fix codecs.lookup() normalization (GH-15092) 2019-08-21 14:26:20 +01:00
compile.c bpo-34880: Add the LOAD_ASSERTION_ERROR opcode. (GH-15073) 2019-08-25 12:44:09 +03:00
condvar.h
context.c
dtoa.c
dup2.c
dynamic_annotations.c
dynload_aix.c
dynload_dl.c
dynload_hpux.c
dynload_shlib.c
dynload_stub.c
dynload_win.c bpo-36266: Add module name in ImportError when DLL not found on Windows (GH-15180) 2019-08-17 13:50:39 -07:00
errors.c bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267) 2019-07-08 17:19:25 +09:00
fileutils.c bpo-37549: os.dup() fails for standard streams on Windows 7 (GH-15389) 2019-08-23 11:38:41 -07:00
formatter_unicode.c
frozen.c
frozenmain.c
future.c
getargs.c bpo-37942: Improve argument clinic float converter (GH-15470) 2019-08-24 19:10:39 -07:00
getcompiler.c
getcopyright.c
getopt.c Delete stale comment in Python/getopt.c. (GH-14719) 2019-08-19 18:35:13 -07:00
getplatform.c
getversion.c
graminit.c bpo-35814: Allow unpacking in r.h.s of annotated assignment expressions (GH-13760) 2019-06-03 08:34:20 +01:00
hamt.c Fix typos in comments, docs and test names (#15018) 2019-07-30 18:16:13 -04:00
import.c bpo-37444: Update differing exception between builtins and importlib (GH-14869) 2019-08-02 22:46:02 -07:00
importdl.c
importdl.h
importlib.h bpo-34880: Add the LOAD_ASSERTION_ERROR opcode. (GH-15073) 2019-08-25 12:44:09 +03:00
importlib_external.h bpo-34880: Add the LOAD_ASSERTION_ERROR opcode. (GH-15073) 2019-08-25 12:44:09 +03:00
importlib_zipimport.h bpo-34880: Add the LOAD_ASSERTION_ERROR opcode. (GH-15073) 2019-08-25 12:44:09 +03:00
initconfig.c bpo-29535: Remove promize about hash randomization of datetime objects. (GH-15269) 2019-08-24 12:49:27 +03:00
makeopcodetargets.py
marshal.c bpo-37547: add _PyObject_CallMethodOneArg (GH-14685) 2019-07-11 17:59:05 +09:00
modsupport.c
mysnprintf.c
mystrtoul.c
opcode_targets.h bpo-34880: Add the LOAD_ASSERTION_ERROR opcode. (GH-15073) 2019-08-25 12:44:09 +03:00
pathconfig.c bpo-37369: Fix initialization of sys members when launched via an app container (GH-14428) 2019-06-29 10:34:11 -07:00
peephole.c bpo-37289: Remove 'if False' handling in the peephole optimizer (GH-14099) 2019-06-15 15:58:00 +01:00
preconfig.c
pyarena.c
pyctype.c
pyfpe.c
pyhash.c
pylifecycle.c bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267) 2019-07-08 17:19:25 +09:00
pymath.c
pystate.c Fix typos in comments, docs and test names (#15018) 2019-07-30 18:16:13 -04:00
pystrcmp.c
pystrhex.c Fix compiler warnings in the pystrehex module (GH-13730) 2019-06-01 21:02:08 +01:00
pystrtod.c
Python-ast.c bpo-37593: Swap the positions of posonlyargs and args in the constructor of ast.parameters nodes (GH-14778) 2019-07-14 16:32:18 -07:00
pythonrun.c bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267) 2019-07-08 17:19:25 +09:00
pytime.c
README
strdup.c
structmember.c
symtable.c bpo-37757: Disallow PEP 572 cases that expose implementation details (GH-15131) 2019-08-25 23:45:40 +10:00
sysmodule.c bpo-36763: PyConfig_Read() handles PySys_AddXOption() (GH-15431) 2019-08-23 18:03:08 +01:00
thread.c
thread_nt.h
thread_pthread.h bpo-18049: Define THREAD_STACK_SIZE for AIX to pass default recursion limit test (GH-15081) 2019-08-03 08:12:26 +02:00
traceback.c bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267) 2019-07-08 17:19:25 +09:00
wordcode_helpers.h

Miscellaneous source files for the main Python shared library