]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Hacky way to get tests to pass
authorGuido van Rossum <guido@python.org>
Wed, 23 Jan 2019 04:30:33 +0000 (20:30 -0800)
committerGuido van Rossum <guido@python.org>
Wed, 23 Jan 2019 04:30:33 +0000 (20:30 -0800)
commitd2091edcf3ece52e10d38ec2cf2284ea435ad1a3
tree8acb2927f2269d97f7bd76dab24fa7bda77abb62
parent36c212bd153f044700c4fe0ff2e2312c4f364d58
Hacky way to get tests to pass

This fixes

if 1:
foo()

but does nothing about

def f():
foo()

The latter still reports 'SyntaxError: invalid syntax'.

So this is not a real solution, just a stop-gap measure until I find a better solution.
Grammar/Grammar
Include/graminit.h
Python/ast.c
Python/graminit.c