A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.python.org/pipermail/python-dev/2000-July/007066.html below:

[Python-Dev] Pre-PEP: Attribute Access Handlers v2

[Python-Dev] Pre-PEP: Attribute Access Handlers v2 [Python-Dev] Pre-PEP: Attribute Access Handlers v2Neil Schemenauer nascheme@enme.ucalgary.ca
Fri, 21 Jul 2000 11:19:54 -0600
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