You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
cmp_list -> compare_chained ...
to better match the Python AST name Compare. Relates to Issue #29
This commit is contained in:
@@ -203,8 +203,10 @@ class Python2Parser(PythonParser):
|
||||
binary_subscr2 ::= expr expr DUP_TOPX_2 BINARY_SUBSCR
|
||||
|
||||
conditional ::= expr jmp_false expr JUMP_ABSOLUTE expr
|
||||
cmp_list2 ::= expr COMPARE_OP RETURN_VALUE
|
||||
cmp_list2 ::= expr COMPARE_OP RETURN_VALUE_LAMBDA
|
||||
|
||||
# compare_chained2 is used in a "chained_compare": x <= y <= z
|
||||
compare_chained2 ::= expr COMPARE_OP RETURN_VALUE
|
||||
compare_chained2 ::= expr COMPARE_OP RETURN_VALUE_LAMBDA
|
||||
"""
|
||||
|
||||
def p_slice2(self, args):
|
||||
|
Reference in New Issue
Block a user