Skip to main content

isoverloaded(object,cls=None) - True if object is overloaded

Project description


`[sudo] pip install isoverloaded`


>>> from isoverloaded import isoverloaded

>>> isoverloaded(obj,cls)


>>> class CLS(object):
    def func(self): pass
    def func2(self): pass

>>> class CLS2(CLS):
    def func(self): pass

>>> isoverloaded(CLS2.func), isoverloaded(CLS2.func,CLS2), isoverloaded("func",CLS2)
True, True, True

>>> isoverloaded(CLS2.func2), isoverloaded(CLS2.func2,CLS2), isoverloaded("func2",CLS2)
False, False, False

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
isoverloaded-1.0.1.tar.gz (1.8 kB) Copy SHA256 hash SHA256 Source None Apr 10, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page