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]> 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 "restored" later.  I eventually want to be able to save the state of
> the simulation and restart it as well as being able to save periodically and
> change the event list for changes in the simulation (i.e. for a distribution
> center if a truck is running late and will not be arriving on time I would 
> need
> to modify it's arrive time and see how that would change the execution of the
> rest of the simulation).
>
> I have found I can't pickle _e (the event list) and I was wondering what
> suggestions you could give or where I could go to get more help on this topic.
>
> Thanks,
> Sarah Moody
>
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to