Files
python-uncompyle6/test/simple_source/comprehension/10-genexpr.py
rocky 039c115679 More Python3 deparsing
- grammar rule genexpr
- More Python3 docstring formatted
2016-05-06 23:51:25 -04:00

8 lines
274 B
Python

# Tests in Python 3:
#
# load_genexpr ::= BUILD_TUPLE_1 LOAD_GENEXPR LOAD_CONST
# genexpr ::= load_closure load_genexpr MAKE_CLOSURE_0 expr GET_ITER CALL_FUNCTION_1
def __instancecheck__(cls, instance):
return any(cls.__subclasscheck__(c) for c in {subclass, subtype})