Arnaud Delobelle <[EMAIL PROTECTED]> writes: [...]
> class ClassGetItem(object): > def __get__(self, obj, objtype=None): > return obj._getitem_ > def __set__(self, obj, val): > obj._getitem_ = val > > class GetItem(object): > def __get__(self, obj, objtype=None): > return obj._getitem_ > def __set__(self, obj, val): > obj._getitem_ = val It's funny how the brain works. I didn't realise both classes were the same until I read my own post! [...] -- Arnaud -- http://mail.python.org/mailman/listinfo/python-list