Is there a simpler way to modify all arguments in a function before using the arguments?

Paul Rubin at nospam.invalid
Sat Nov 10 05:05:45 CET 2012

Chris Angelico <rosuav at> 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.

More information about the Python-list mailing list