Danny,

'conv' is for the name of the conversion [i.e 'can_us'] and rate is for the
conversion rate [i.e. 0.80276]

Thanks,
Nathan Pinno,

MSN Messenger: [EMAIL PROTECTED]
Yahoo! Messenger: spam_swatter31
AIM: f3mighty
ICQ: 199020705  

-----Original Message-----
From: Danny Yoo [mailto:[EMAIL PROTECTED] 
Sent: December 16, 2005 3:49 PM
To: Nathan Pinno
Cc: tutor@python.org
Subject: Re: [Tutor] How do I fix this IndexError?


> import pickle
> rates = {'can_us' : 0.80276,
>          'us_can' : 1.245702,
>          'can_euro' : 1.488707,
>          'euro_can' : 0.671724}
>
> def save_rates(exch):
>     store = open("exch.txt",'w')
>     pickle.dump(conv,rate)
>     store.close()

Hi Nathan,

You may want to double check the use of pickle.dump().  I'm not sure I'm
understanding what values are being passed here: what is 'conv' and what is
'rate' here?

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to