New PEP: Attribute Access Handlers
Toby Dickenson
mbel44 at dial.pipex.net
Mon Jul 31 05:30:17 EDT 2000
Greg Ewing <to_get_my_address at see.my.signature> wrote:
>Toby Dickenson wrote:
>>
>> I can see some cases where it would be appealing to implement a
>> property access handler in a C extension. Is it worth dedicating a
>> slot in PyTypeObject for these things?
>
>I don't think that's necessary, because attribute access
>for C objects already goes through a getattr handler in
>the type object.
Through a getattr hander in the container object, yes. But not a
handler of the contained Getter/Setter object (unless it has the
special type - and that's the restriction that would be better
relaxed).
Toby Dickenson
tdickenson at geminidataloggers.com
More information about the Python-list
mailing list