On Fri, Jul 21, 2000 at 11:25:39AM -0500, Paul Prescod wrote: > PEP: ??? > Title: Attribute Access Handlers > Version: $Revision: 1.0 $ > Owner: paul@prescod.net > Python-Version: 2.0 > Status: Incomplete So far I'm a strong +1. I dislike the all or nothing approach of __setattr__ and the performance cost associated with it. Support for "attribute access handlers" should largely eliminate the need for writing attribute access wrappers (getters and setters). The benefits are that code is simpler (you can use object attributes directly for outside the class), performance is better, and you always have the option of computing the value in the future without changing code that uses the object. Neil
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4