On Sun, Nov 11, 2012 at 12:15 AM,  <bruceg113...@gmail.com> wrote:
> Thanks to all.
> Steve's example is the one I will try next week.
> Passing in lists, will work but it requires extra coding from the calling 
> routines to build the list.

Not necessarily! Watch:

def foo(*args):
    print(repr(args))

foo("Hello","world","!")

('Hello', 'world', '!')

Okay, that's not technically a list, it's a tuple, but same diff. Your
callers still see you as taking separate arguments, but you take them
as a single collection.

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to