changing a var by reference of a list
Duncan Booth
duncan.booth at invalid.invalid
Tue May 8 12:54:18 EDT 2007
"Jorgen Bodde" <jorgen.maillist at gmail.com> wrote:
> I will try this approach. The idea was that I could give a list to the
> SQL execute command, so that the results coming back would
> automatically be assigned to variables.
>
Don't forget that in Python a function can return multiple results (or
rather can return a sequence). That means you can do something like:
varA, varB = doSomething()
where doSomething would execute your SQL and return two results.
More information about the Python-list
mailing list