Is there a simpler way to modify all arguments in a function before using the arguments?
rosuav at gmail.com
Sat Nov 10 04:56:40 CET 2012
On Sat, Nov 10, 2012 at 1:52 PM, Paul Rubin <no.email at nospam.invalid> wrote:
> bruceg113355 at gmail.com writes:
>> Is there a simpler way to modify all arguments in a function before
>> using the arguments?
> Why do you want to do that?
def send_email(from, to, subj, body, whatever, other, headers, you, like):
# Okay, now translate all those into the appropriate encoding and
with special characters escaped
# We need to translate each one separately so that, for instance,
a newline in the subject won't let you create additional headers
More information about the Python-list