Another kind of yield_from on 3.5

This commit is contained in:
rocky
2016-06-22 16:48:03 -04:00
parent 126af429fb
commit f999e6a33a
7 changed files with 31 additions and 11 deletions

View File

@@ -582,6 +582,10 @@ class Python35onParser(Python3Parser):
# Python 3.5+ has WITH_CLEANUP_START/FINISH
withstmt ::= expr SETUP_WITH exprlist suite_stmts_opt
POP_BLOCK LOAD_CONST COME_FROM
WITH_CLEANUP_START WITH_CLEANUP_FINISH END_FINALLY
withstmt ::= expr SETUP_WITH POP_TOP suite_stmts_opt
POP_BLOCK LOAD_CONST COME_FROM
WITH_CLEANUP_START WITH_CLEANUP_FINISH END_FINALLY