Question on difference between LambdaType and FunctionType

Iwo Herka iwoherka at gmail.com
Sun Nov 25 14:03:56 EST 2018


Hello,

Can someone please provide a use-case for having LambdaType
separate to FunctionType? Since they are equal
(LambdaType == FunctionType) it seems a bit superfluous to me.
For example, I cannot do the following:

    if type(foo) is FunctionType and not type(foo) is LambdaType:
        ...

What am I missing?

Sincerely,
Iwo Herka



More information about the Python-list mailing list