[Cython] __getattribute__
Peter Todd
pete at petertodd.org
Wed Apr 30 02:42:08 CEST 2008
Is there a __getattribute__ work-alike in Cython?
Essentially I need direct control over an objects tp_getattro and
tp_setattro slots to implement a wrapper class. Specificly
wrapped.__class__ should go to the wrapped objects class attribute, not
the wrapping objects __class__ attribute.
__getattr__ outputs C-source that includes a call to
PyObject_GenericGetAttr first, and won't run my code if that call
succeeds.
Thanks,
Peter
--
http://petertodd.org 'peter'[:-1]@petertodd.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://codespeak.net/pipermail/cython-dev/attachments/20080429/b0f61700/attachment.pgp
More information about the Cython-dev
mailing list