Is there a simpler way to modify all arguments in a function before using the arguments?
Paul Rubin
no.email at nospam.invalid
Fri Nov 9 23:05:45 EST 2012
Chris Angelico <rosuav at gmail.com> 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