Re: save class

2007-06-19 Thread nik
Thank you for all the responses. In light of what you've told me I have gone back to storing my specific dictionaries in text files and then reading them in to the class. Thank you, Nik -- http://mail.python.org/mailman/listinfo/python-list

Re: save class

2007-06-15 Thread Diez B. Roggisch
> of having to keep track of a separate dictionary file. I am new to > this, but I thought that this would be a regular thing to do in > python, because people must make classes in the interactive console > and then export them somehow for later use. No. That's not how things work. One does dabble

Re: save class

2007-06-14 Thread Josiah Carlson
nik wrote: > of having to keep track of a separate dictionary file. I am new to > this, but I thought that this would be a regular thing to do in > python, because people must make classes in the interactive console > and then export them somehow for later use. Create a file. Put your code in it.

Re: save class

2007-06-14 Thread Gabriel Genellina
En Thu, 14 Jun 2007 16:05:14 -0300, nik <[EMAIL PROTECTED]> escribió: > On Jun 13, 10:04 pm, Josiah Carlson <[EMAIL PROTECTED]> > wrote: >> Gabriel Genellina wrote: >> > En Wed, 13 Jun 2007 23:11:22 -0300, nik <[EMAIL PROTECTED]> escribió: >> >> It would seem that I want to actually save the sour

Re: save class

2007-06-14 Thread nik
On Jun 13, 10:04 pm, Josiah Carlson <[EMAIL PROTECTED]> wrote: > Gabriel Genellina wrote: > > En Wed, 13 Jun 2007 23:11:22 -0300, nik <[EMAIL PROTECTED]> escribió: > >> It would seem that I want to actually save the source code for the > >> class. I know that I could of course open up an editor and

Re: save class

2007-06-13 Thread Josiah Carlson
Gabriel Genellina wrote: > En Wed, 13 Jun 2007 23:11:22 -0300, nik <[EMAIL PROTECTED]> escribió: >> It would seem that I want to actually save the source code for the >> class. I know that I could of course open up an editor and just make >> it, but my ideal would be to have the base class, Map, be

Re: save class

2007-06-13 Thread Gabriel Genellina
En Wed, 13 Jun 2007 23:11:22 -0300, nik <[EMAIL PROTECTED]> escribió: > On Jun 13, 6:48 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: >> En Wed, 13 Jun 2007 22:20:16 -0300, nik <[EMAIL PROTECTED]> escribió: >> >> > I would like to create a class and then save it for re-use later. I >> > hav

Re: save class

2007-06-13 Thread nik
On Jun 13, 6:48 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Wed, 13 Jun 2007 22:20:16 -0300, nik <[EMAIL PROTECTED]> escribió: > > > I would like to create a class and then save it for re-use later. I > > have tried to usepickle, but am not sure if that is right. I am > > sorry, but I a

Re: save class

2007-06-13 Thread Gabriel Genellina
En Wed, 13 Jun 2007 22:20:16 -0300, nik <[EMAIL PROTECTED]> escribió: > I would like to create a class and then save it for re-use later. I > have tried to use pickle, but am not sure if that is right. I am > sorry, but I am new to python. Do you want to save the *source*code* of your class, or d

save class

2007-06-13 Thread nik
Hi, I would like to create a class and then save it for re-use later. I have tried to use pickle, but am not sure if that is right. I am sorry, but I am new to python. Basically, I have a class, Map. I want to be able to create new maps: MapA, MapB... that have Map as the base class. start with-