Replying to the list..
On Mon, Sep 29, 2008 at 12:43 AM, Steve Collins <[EMAIL PROTECTED]> wrote:
> Sorry it took me so long to respond; I haven't been able to afford any time
> to such leisurely pursuits as programming.
> I'm not cc'ing this to the Mailing list, becuase I fear it may get a little
mple assignment (x=y) outside of the class?
On 9/25/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Date: Thu, 25 Sep 2008 04:24:31 -0400
> From: "Steve Collins" <[EMAIL PROTECTED]>
> Subject: [Tutor] How to replace instances
> To: tutor@python.org
> Message-ID
On Thu, Sep 25, 2008 at 8:03 AM, Steve Collins <[EMAIL PROTECTED]> wrote:
> that's what I was trying (incorrectly) to achieve the above example.
> but how can I do this for an arbitrary number of objects in a list?
>
> I have a list x = [a,b,c] and a list y = [d,e,f], both filled with
> instance o
On 9/25/08, Kent Johnson <[EMAIL PROTECTED]> wrote:
> On Thu, Sep 25, 2008 at 4:24 AM, Steve Collins <[EMAIL PROTECTED]>
> wrote:
>
>> However, some of the instances refer explicitly to other instances
>> instances. It's obvious why this causes problems. It occurred to me to
>> simply replace the i
On Thu, Sep 25, 2008 at 4:24 AM, Steve Collins <[EMAIL PROTECTED]> wrote:
> However, some of the instances refer explicitly to other instances
> instances. It's obvious why this causes problems. It occurred to me to
> simply replace the instances with the ones in the un-pickled list, but I
> don't
I've written a save/load function for a simple program using cPickle. Upon
saving, a master list, to which all instances are added in their __init__,
is pickled. when the program starts, if the user wishes to load, a variable
"load" is set to one, and the pickled list is loaded. All the classes eit