Misc bugs

parse2.py: restore accidently-removed while1stmt rule
scanner27.py: grammar typo
check_ast: add while1else to list of looping constructs
pysource.py: CALL_FUNCTION_VAR_KW_ARGS with positional args rule is different?
This commit is contained in:
rocky
2017-04-10 07:57:56 -04:00
parent 9e34654b38
commit 41343c27b7
4 changed files with 7 additions and 4 deletions

View File

@@ -1786,7 +1786,9 @@ class SourceWalker(GenericASTTraversal, object):
str += '*%c, **%c)'
# Python 3.5 only puts optional args (the VAR part)
# lowest down the stack
if self.version == 3.5:
na = (v & 0xff) # positional parameters
if self.version == 3.5 and na == 0:
print("XXX", k)
if p2[2]: p2 = (2, -2, ', ')
entry = (str, 0, p2, 1, -2)
else: