Question on difference between LambdaType and FunctionType

Iwo Herka iwoherka at gmail.com
Tue Nov 27 06:02:51 EST 2018


Ian Kelly <ian.g.kelly at gmail.com> wrote:
> What about:
>
>     __init__ = lambda self: setattr(self, 'foo', 'bar')

That's an edge-case alright. Fortunately, I've decided to not skip
lambdas. That's too problematic, it's easier to parse them as a
special-case. Thanks for pointing this out.

Sincerely,
Iwo Herka



More information about the Python-list mailing list