[Python-checkins] CVS: python/nondist/peps pep-0213.txt,1.3,1.4
Barry Warsaw
python-dev@python.org
Tue, 22 Aug 2000 22:47:17 -0700
Update of /cvsroot/python/python/nondist/peps
In directory slayer.i.sourceforge.net:/tmp/cvs-serv2635
Modified Files:
pep-0213.txt
Log Message:
Deferred to Python 2.1
Index: pep-0213.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0213.txt,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** pep-0213.txt 2000/07/21 21:59:29 1.3
--- pep-0213.txt 2000/08/23 05:47:12 1.4
***************
*** 2,8 ****
Title: Attribute Access Handlers
Version: $Revision$
! Owner: paul@prescod.net (Paul Prescod)
! Python-Version: 2.0
! Status: Incomplete
--- 2,11 ----
Title: Attribute Access Handlers
Version: $Revision$
! Author: paul@prescod.net (Paul Prescod)
! Status: Draft
! Type: Standards Track
! Python-Version: 2.1
! Created: 21-Jul-2000
! Post-History:
***************
*** 20,23 ****
--- 23,27 ----
and safer to implement these handlers for Python instances.
+
Justification
***************
*** 51,54 ****
--- 55,59 ----
merely a new syntax for an existing convention.
+
Current Solution
***************
*** 86,89 ****
--- 91,95 ----
inefficient.
+
Proposed Syntax
***************
*** 105,110 ****
x.foo=fooval+5
del x.foo
! Semantics
Attribute references of all three kinds should call the method.
--- 111,117 ----
x.foo=fooval+5
del x.foo
+
! Semantics
Attribute references of all three kinds should call the method.
***************
*** 126,129 ****
--- 133,137 ----
goes for __del_y__.
+
Proposed Implementation
***************
*** 170,173 ****
--- 178,182 ----
of set.
+
Caveats
***************
*** 200,203 ****
--- 209,214 ----
Once again, the solution is to use a special (typically private)
variable such as __XXX.
+
+
Local Variables: