__slots__ and copy again: why does it work?

limodou limodou at gmail.com
Mon Dec 26 23:43:32 EST 2005


26 Dec 2005 20:33:35 -0800, fortepianissimo <fortepianissimo at gmail.com>:
> Mystery solved - when there's only one slot I should've used __slots__
> = ('i', ). Duh!
>
> So in short, __slots__ and copy.copy() work fine in Python 2.4.2.
>
Hard works, but very useful :)


--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit



More information about the Python-list mailing list