Skip to main content

formatfunction(function,...) - format function representation

Project description

Install

$ [sudo] pip install formatfunction

Usage

>>> from formatfunction import formatfunction

>>> formatfunction(formatfunction)

Examples

# default
>>> formatfunction(formatfunction)
'formatfunction.formatfunction(function, name=True, fullname=True, formatvalue=formatvalue.formatvalue, firstarg=True)'

# fullname - False/True (default True)
>>> formatfunction(formatfunction,fullname=False)
'formatfunction(function, name=True, fullname=True, formatvalue=f'ormatvalue.formatvalue, firstarg=True)

# name - False/True (default True)
>>> formatfunction(formatfunction,name=False)
'(function, name=True, fullname=True, formatvalue=formatvalue.formatvalue, firstarg=True)'

# args - False/True (default True)
>>> formatfunction(formatfunction,args=False)
'formatfunction.formatfunction()'

# firstarg - False/True (default True). used for class methods
>>> formatfunction(formatfunction,firstarg=False)
'formatfunction.formatfunction(name=True,fullname=True,formatvalue=formatvalue.formatvalue,firstarg=True)'

Sources

Project details


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
formatfunction-1.0.3.tar.gz (1.6 kB) Copy SHA256 hash SHA256 Source None

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