Function that returns a tuple

Dan Hipschman dsh at linux.ucla.edu
Sat Jun 16 21:53:21 EDT 2007


On Sat, Jun 16, 2007 at 06:30:26PM -0700, Marcpp wrote:
> Hi, I need to returns a tuple from a function (reads a database)
> Any idea?.

Like this?

def foo():
    return 1, 2, 3, 4




More information about the Python-list mailing list