On Sat, Nov 10, 2012 at 3:05 PM, Paul Rubin <[email protected]> wrote: > Chris Angelico <[email protected]> writes: >> Contrived example: >> def send_email(from, to, subj, body, whatever, other, headers, you, like): > > That should be a dictionary with the header names as indexes. In fact > there are already some email handling modules in the stdlib that > represent headers that way.
That's also plausible, but keyword arguments do make sense. And this was a top-of-the-head contrived example; I'm sure there are plenty of good use-cases. ChrisA -- http://mail.python.org/mailman/listinfo/python-list
