[Cython] __getattribute__
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri May 9 05:33:03 CEST 2008
Peter Todd wrote:
> If no __getattr__ is defined, __getattribute__ is essentially a
> tp_getattr slot filler:
>
> static PyObject *__pyx_tp_getattro_3foo_foo(PyObject *o, PyObject *n) {
> PyObject *v = __pyx_pf_3foo_3foo___getattribute__(o, n);
> return v;
> }
What if a __getattr__ is inherited from a base class?
What if this class doesn't define a __getattr__, but
another class that inherits from it does, and doesn't
override __getattribute__?
--
Greg
More information about the Cython-dev
mailing list