[Python-checkins] CVS: python/nondist/peps pep-0231.txt,1.2,1.3

Barry Warsaw python-dev@python.org
Sat, 2 Dec 2000 07:12:38 -0800


Update of /cvsroot/python/python/nondist/peps
In directory slayer.i.sourceforge.net:/tmp/cvs-serv25539

Modified Files:
	pep-0231.txt 
Log Message:
Back out last second change in the examples.  `missing' should be an
empty mutable (i.e. list) since empty tuples are shared.  Thanks Just!


Index: pep-0231.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0231.txt,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** pep-0231.txt	2000/12/02 04:11:32	1.2
--- pep-0231.txt	2000/12/02 15:12:35	1.3
***************
*** 203,207 ****
                      return getattr(self.__contained, name)
                  # Everything else gets wrapped
!                 missing = ()
                  which = self.__contained
                  obj = getattr(which, name, missing)
--- 203,207 ----
                      return getattr(self.__contained, name)
                  # Everything else gets wrapped
!                 missing = []
                  which = self.__contained
                  obj = getattr(which, name, missing)
***************
*** 258,262 ****
              def aq_acquire(self, name):
                  # Everything else gets wrapped
!                 missing = ()
                  which = self.__contained
                  obj = getattr(which, name, missing)
--- 258,262 ----
              def aq_acquire(self, name):
                  # Everything else gets wrapped
!                 missing = []
                  which = self.__contained
                  obj = getattr(which, name, missing)
***************
*** 283,287 ****
                      return setattr(self, name, args[0])
                  obj = getattr(self, name)
!                 missing = ()
                  of = getattr(obj, '__of__', missing)
                  if of is not missing:
--- 283,287 ----
                      return setattr(self, name, args[0])
                  obj = getattr(self, name)
!                 missing = []
                  of = getattr(obj, '__of__', missing)
                  if of is not missing:
***************
*** 411,415 ****
              def __findattr__(self, name, *args):
                  methcache = self.__dict__.setdefault('__cache__', {})
!                 missing = ()
                  obj = getattr(self, name, missing)
                  # if obj is missing we better be doing a setattr for
--- 411,415 ----
              def __findattr__(self, name, *args):
                  methcache = self.__dict__.setdefault('__cache__', {})
!                 missing = []
                  obj = getattr(self, name, missing)
                  # if obj is missing we better be doing a setattr for
***************
*** 543,547 ****
                      op = 'get'
                  # XXX: op = 'del' currently not supported
!                 missing = ()
                  meth = getattr(self, hookname, missing)
                  if meth is missing:
--- 543,547 ----
                      op = 'get'
                  # XXX: op = 'del' currently not supported
!                 missing = []
                  meth = getattr(self, hookname, missing)
                  if meth is missing: