pycdc icon indicating copy to clipboard operation
pycdc copied to clipboard

generator expressions in 2.7 and above

Open rocky opened this issue 8 years ago • 1 comments

The following doesn't decompile correctly in every Python version that allows this:

def __sub__(self):
    return self.__class__(i for i in self)

On 2.7 I get:

def __sub__(self, other):
    return self.__class__((lambda .0: continue)(self))

rocky avatar Nov 28 '17 22:11 rocky

Same error

CSM-BlueRed avatar Jun 06 '22 00:06 CSM-BlueRed