Fwd: Eliminate "extra" variable

Dave Angel davea at davea.name
Sun Dec 8 23:36:30 CET 2013


On Sun, 8 Dec 2013 12:58:18 -0800, Igor Korot <ikorot01 at gmail.com> 
wrote:
> It's input is the query result, so there is no looping when the
> function is called. It is called only once.

Then why save part of the result in an instance attribute? Just 
return all of the results as a tuple.

-- 
DaveA




More information about the Python-list mailing list