diff --git a/uncompyle6/parsers/parse3.py b/uncompyle6/parsers/parse3.py index 3788a738..a892c80a 100644 --- a/uncompyle6/parsers/parse3.py +++ b/uncompyle6/parsers/parse3.py @@ -376,9 +376,7 @@ class Python3Parser(PythonParser): # Python 3.4+ expr ::= LOAD_CLASSDEREF - binary_subscr2 ::= expr expr DUP_TOP_TWO BINARY_SUBSCR # Python3 drops slice0..slice3 - ''' @staticmethod diff --git a/uncompyle6/parsers/parse32.py b/uncompyle6/parsers/parse32.py index 9f343066..24d4e573 100644 --- a/uncompyle6/parsers/parse32.py +++ b/uncompyle6/parsers/parse32.py @@ -10,9 +10,6 @@ from uncompyle6.parsers.parse3 import Python3Parser class Python32Parser(Python3Parser): def p_32to35(self, args): """ - # In Python 3.2+, DUP_TOPX is DUP_TOP_TWO - binary_subscr2 ::= expr expr DUP_TOP_TWO BINARY_SUBSCR - # Store locals is only in Python 3.0 to 3.3 stmt ::= store_locals store_locals ::= LOAD_FAST STORE_LOCALS diff --git a/uncompyle6/parsers/parse33.py b/uncompyle6/parsers/parse33.py index a48066b2..b310af61 100644 --- a/uncompyle6/parsers/parse33.py +++ b/uncompyle6/parsers/parse33.py @@ -19,7 +19,6 @@ class Python33Parser(Python32Parser): # actions that want c_stmts_opt at index 1 iflaststmt ::= testexpr c_stmts_opt33 - iflaststmtl ::= testexpr c_stmts_opt c_stmts_opt33 ::= JUMP_BACK JUMP_ABSOLUTE c_stmts_opt _ifstmts_jump ::= c_stmts_opt JUMP_FORWARD _come_from diff --git a/uncompyle6/parsers/parse34.py b/uncompyle6/parsers/parse34.py index f818836a..fa136f71 100644 --- a/uncompyle6/parsers/parse34.py +++ b/uncompyle6/parsers/parse34.py @@ -17,8 +17,6 @@ class Python34Parser(Python33Parser): """ # Python 3.4+ optimizes the trailing two JUMPS away - for_block ::= l_stmts - # Is this 3.4 only? yield_from ::= expr GET_ITER LOAD_CONST YIELD_FROM """ diff --git a/uncompyle6/parsers/parse35.py b/uncompyle6/parsers/parse35.py index 996eec72..032a7e18 100644 --- a/uncompyle6/parsers/parse35.py +++ b/uncompyle6/parsers/parse35.py @@ -45,13 +45,7 @@ class Python35Parser(Python34Parser): # Python 3.3+ also has yield from. 3.5 does it # differently than 3.3, 3.4 - expr ::= yield_from yield_from ::= expr GET_YIELD_FROM_ITER LOAD_CONST YIELD_FROM - - # Python 3.4+ has more loop optimization that removes - # JUMP_FORWARD in some cases, and hence we also don't - # see COME_FROM - _ifstmts_jump ::= c_stmts_opt """ class Python35ParserSingle(Python35Parser, PythonParserSingle): pass