Skip to main content

compute function default value for each call

Project description

Return a function whose default values will be computed for each call,
instead of evaluating the default values when function definition is executed.

make sure this function is the last(closest to the function) decorator
def foo(a=([])):
print a



Project details

Download files

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

Files for default_value_for_each_call, version 0.6
Filename, size File type Python version Upload date Hashes
Filename, size default_value_for_each_call-0.6.tar.gz (1.7 kB) File type Source Python version None Upload date Hashes View hashes

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