arg-passing style question

Chad Netzer cnetzer at mail.arc.nasa.gov
Sat Apr 19 16:31:31 EDT 2003


On Sat, 2003-04-19 at 13:12, Guy Middleton wrote:
> I want to pass two values to a function that expects a single argument.
> So, I could wrap them in either a list or a tuple.  Is either way preferred
> over the other?

I'd go tuple, but some guidelines would suggest a list.

For more discussion, see these threads:

http://mail.python.org/pipermail/python-list/2003-March/152761.html
http://mail.python.org/pipermail/python-list/2003-March/152768.html

-- 

Chad Netzer
(any opinion expressed is my own and not NASA's or my employer's)






More information about the Python-list mailing list