islambdamethod(object) function - True if object is lambda method


Keywords
lambda method inspect
License
Other
Install
pip install islambdamethod==0.0.29

Documentation

Install

`[sudo] pip install islambdamethod`

Usage

>>> from islambdamethod import islambdamethod

>>> islambdamethod(obj)

Examples

>>> class CLS:
    lambdamethod = lambda: None
    @classmethod
    def classmethod(cls,x): pass

    @staticmethod
    def staticmethod(x): pass

>>> islambdamethod(CLS.lambdamethod)
True

>>> islambdamethod(CLS.classmethod)
False

>>> islambdamethod(CLS.staticmethod)
False

GitHub followers GitHub issues