You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Fix Python 3 list comprehansion closure bug
This commit is contained in:
8
test/simple_source/comprehension/11-list-if.py
Normal file
8
test/simple_source/comprehension/11-list-if.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# Test Python 3.x test semantic handling of
|
||||
#
|
||||
# load_closure ::= LOAD_CLOSURE BUILD_TUPLE_1
|
||||
# ...
|
||||
# listcomp ::= load_closure LOAD_LISTCOMP LOAD_CONST MAKE_CLOSURE_0 expr GET_ITER CALL_FUNCTION_1
|
||||
|
||||
def long_has_args(opt, longopts):
|
||||
return [o for o in longopts if o.startswith(opt)]
|
Reference in New Issue
Block a user