Re: [Tutor] (de)serialization questions

2010-10-04 Thread Albert-Jan Roskam
the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever done for us? ~~ --- On Mon, 10/4/10, Alan Gauld wrote: From: Alan Gauld Subj

Re: [Tutor] (de)serialization questions

2010-10-03 Thread Alan Gauld
"Albert-Jan Roskam" wrote It makes much more sense to maintain one database table instead of 3 csv files for the three data typists' output. To be pedantic you will probably want several tables but they will all be in one file... :-) Btw, your private website is nice too. Nice pictures!

Re: [Tutor] (de)serialization questions

2010-10-03 Thread Albert-Jan Roskam
Lee Harr To: tutor@python.org Sent: Sat, October 2, 2010 12:56:21 AM Subject: Re: [Tutor] (de)serialization questions >>> I have data about zip codes, street and city names (and perhaps later also of >>> street numbers). I made a dictionary of the form {zipcode: (street, city)}

Re: [Tutor] (de)serialization questions

2010-10-02 Thread Steven D'Aprano
On Sat, 2 Oct 2010 04:08:22 am Albert-Jan Roskam wrote: > Maybe my main question is as follows: what permanent object is most > suitable to store a large amount of entries (maybe too many to fit > into the computer's memory), which can be looked up very fast. "Very fast" and "cannot fit in main m

Re: [Tutor] (de)serialization questions

2010-10-01 Thread Alan Gauld
"Albert-Jan Roskam" wrote Maybe my main question is as follows: what permanent object is most suitable to store a large amount of entries (maybe too many to fit into the computer's memory), which can be looked up very fast. It depends on the nature of the object and the lookup but in gener

Re: [Tutor] (de)serialization questions

2010-10-01 Thread Lee Harr
>>> I have data about zip codes, street and city names (and perhaps later also >>> of >>> street numbers). I made a dictionary of the form {zipcode: (street, city)} >> >> One dictionary with all of the data? >> >> That does not seem like it will work. What happens when >> 2 addresses have the sam

Re: [Tutor] (de)serialization questions

2010-10-01 Thread Albert-Jan Roskam
have the Romans ever done for us? ~~ From: Lee Harr To: tutor@python.org Sent: Fri, October 1, 2010 12:37:58 AM Subject: Re: [Tutor] (de)serialization questions > I have data about zip codes, street

Re: [Tutor] (de)serialization questions

2010-09-30 Thread Lee Harr
> I have data about zip codes, street and city names (and perhaps later also of > street numbers). I made a dictionary of the form {zipcode: (street, city)} One dictionary with all of the data? That does not seem like it will work. What happens when 2 addresses have the same zip code? > Are th

[Tutor] (de)serialization questions

2010-09-30 Thread Albert-Jan Roskam
Hi, I have data about zip codes, street and city names (and perhaps later also of street numbers). I made a dictionary of the form {zipcode: (street, city)} I dumped the dictionary into a marshal file. I have two questions: The first question is a very basic one: if I deserialize the dictionary