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
Release history Release notifications | RSS feed
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)
Built Distribution
File details
Details for the file MultipleReturn-0.1.0a1.zip
.
File metadata
- Download URL: MultipleReturn-0.1.0a1.zip
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ca53e2ff5b702ecbcfd548560b0a9322187a7a1f6700a251a0b0e127726a3ed |
|
MD5 | cf512b20f74b838e27f6233f3c9b922f |
|
BLAKE2b-256 | df60b2f5e229c266618b6230173bf76296e8fe1d1ff5227b87f54eb8ee642d48 |
Provenance
File details
Details for the file MultipleReturn-0.1.0a1-py2.py3-none-any.whl
.
File metadata
- Download URL: MultipleReturn-0.1.0a1-py2.py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acee6caf6a7b5d3ce13da7d8c1613edaced517500aed18b361e1722a47b0dd59 |
|
MD5 | c31bbb52d1745d50a74388b5808550e5 |
|
BLAKE2b-256 | f07186af4c1f05e1cc0b24988c6a7a3928a89da34614f95866e5e2363b77b6d2 |