Files
python-uncompyle6/test/simple_source/def/09_class_closure.py
rocky 9462e33f48 Fix Python 3.x bugs
* class definitions made via closures
* Add "make check-short" to top-level
* parse3.py: Python 3.3 uses STORE_LOGALS
2016-05-17 04:00:54 -04:00

8 lines
210 B
Python

# Bug from 3.4 functools.py
# class is made with a closure not a makefunc
def cmp_to_key(mycmp):
class K(object):
def __ne__(self, other):
return mycmp(self.obj, other.obj)
return K