Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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.

Release History

This version
History Node


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
(4.5 kB) Copy SHA256 Hash SHA256
Wheel py2.py3 Dec 23, 2014
(5.0 kB) Copy SHA256 Hash SHA256
Source None Dec 23, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate