Re: Confused about __prepare__

2011-04-07 Thread andrew cooke
Yes, I think you're right, thanks. Makes sense from an efficiency POV. Luckily, it turns out I don't need to do that anyway :o) Cheers, Andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Confused about __prepare__

2011-04-07 Thread Chris Rebert
On Thu, Apr 7, 2011 at 3:31 PM, andrew cooke wrote: > > In the code below I use __prepare__ to change the class dictionary so that a > tuple is stored in __setitem__().  Since __getitem__() removes the tuple I > wasn't expecting any problems, but it seems that __init__ is being retrieved > via

Re: Confused about __prepare__

2011-04-07 Thread andrew cooke
Sorry I should probably have made clear that this is Python 3.2 -- http://mail.python.org/mailman/listinfo/python-list