Re: [Tutor] python simulations - saving state

2006-05-17 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > Hi, > > I am fairly new to programming in python, but for work I am running a > simulation > of a distribution center. What I am trying to do now is to save the state of > the simulation (i.e. the event list and any other necessary variables) so that > it can be "resto

Re: [Tutor] python simulations - saving state

2006-05-16 Thread Carlos Daniel Ruvalcaba Valenzuela
Depends, you can pickle the list, but all objects need to be pickleable, maybe you can put up with this requeriment by changing your events to be pickleable?, but i don't know what data you store in a event or what kind of data is it. Regards On 5/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrot

[Tutor] python simulations - saving state

2006-05-16 Thread sarahjm
Hi, I am fairly new to programming in python, but for work I am running a simulation of a distribution center. What I am trying to do now is to save the state of the simulation (i.e. the event list and any other necessary variables) so that it can be "restored" later. I eventually want to be abl