Re: [Tutor] Quacks like an object

2011-11-22 Thread Christopher King
> > You want to persist data changes to a file? Thats easy enough. Yes, but I want it built in to the objects built in methods like for example doing *listquacker[3]="This string needs to be updated immediately**."* Should write the new data to a file. It should also work for all data types, not j

Re: [Tutor] Quacks like an object

2011-10-25 Thread Steven D'Aprano
On Mon, Oct 24, 2011 at 07:02:28PM -0400, Christopher King wrote: > Dear Tutors, > I am trying to make an object, which will appear exactly like an object > of my choice. It will should be impossible to tell it is not the object. Can't be done in Python. The only way to make something absolute

Re: [Tutor] Quacks like an object

2011-10-24 Thread Alan Gauld
On 25/10/11 00:02, Christopher King wrote: Dear Tutors, I am trying to make an object, which will appear exactly like an object of my choice. It will should be impossible to tell it is not the object. We can get pretty close but I suspect its impossible to make it 100% reliable - otherwis