> for key in sorted(result.keys): a sorted list of keys
Oops, that should of course be:
for key in sorted(result.keys() ):
Alan G.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Chris, You seem to be going through several hoops that
you don't need here. Let the data structures do the work
of storage and extract the data you want in its various
pieces. You are getting the entire data set in a string
then trying to pick out the bits you want, that defeats
the purpose of havi
Chris Hallman wrote:
>
> I need some suggestions on how to work with a dictionary. I've got a
> program that builds a dictionary. I need to be able to manipulate the
> different keys and data so that I can write the output to a file AND
> utilize the smtplib to send the data in an email. I had p
Title: Message
Chris,
This looks similar to what I do for my job. I
would be happy to help you, if I
can.
My first question is, how would you like the output
to look? Can you manually create a model of the email text you want to
send?
My second question is, can you create the
email
Chris Hallman wrote:
>
> I need some suggestions on how to work with a dictionary. I've got a
> program that builds a dictionary. I need to be able to manipulate the
> different keys and data so that I can write the output to a file AND
> utilize the smtplib to send the data in an email. I had p
I need some suggestions on how to work with a dictionary. I've got a program that builds a dictionary. I need to be able to manipulate the different keys and data so that I can write the output to a file AND utilize the smtplib to send the data in an email. I had problems using the data in the dict