Skip to main content

An implementation of multiple return values.

Project description

Unlike Lisp’s “values” function, Python lacks a way of creating a function that return multiple values where the caller by default only sees the first one. Simply add the @multiplereturn decorator to any function or method that return a tuple, and it will now return only the first item in that tuple to its callers. Wrap the call to a @multiplereturn decorated function with the values() function and the caller gets the original tuple.

Project details


Download files

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

Source Distribution

MultipleReturn-0.1.0a1.zip (5.0 kB view details)

Uploaded Source

Built Distribution

MultipleReturn-0.1.0a1-py2.py3-none-any.whl (4.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file MultipleReturn-0.1.0a1.zip.

File metadata

File hashes

Hashes for MultipleReturn-0.1.0a1.zip
Algorithm Hash digest
SHA256 4ca53e2ff5b702ecbcfd548560b0a9322187a7a1f6700a251a0b0e127726a3ed
MD5 cf512b20f74b838e27f6233f3c9b922f
BLAKE2b-256 df60b2f5e229c266618b6230173bf76296e8fe1d1ff5227b87f54eb8ee642d48

See more details on using hashes here.

Provenance

File details

Details for the file MultipleReturn-0.1.0a1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for MultipleReturn-0.1.0a1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 acee6caf6a7b5d3ce13da7d8c1613edaced517500aed18b361e1722a47b0dd59
MD5 c31bbb52d1745d50a74388b5808550e5
BLAKE2b-256 f07186af4c1f05e1cc0b24988c6a7a3928a89da34614f95866e5e2363b77b6d2

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page