[Python-checkins] CVS: python/nondist/peps pep-0280.txt,1.6,1.7

Tim Peters tim_one@users.sourceforge.net
Sun, 10 Feb 2002 23:14:07 -0800


Update of /cvsroot/python/python/nondist/peps
In directory usw-pr-cvs1:/tmp/cvs-serv23732

Modified Files:
	pep-0280.txt 
Log Message:
Fix a typo, unfortunately propagated by word-completion.


Index: pep-0280.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0280.txt,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** pep-0280.txt	11 Feb 2002 07:05:01 -0000	1.6
--- pep-0280.txt	11 Feb 2002 07:14:05 -0000	1.7
***************
*** 262,266 ****
              def __init__(self, obj=NULL, builtin=0):
                  self.objptr = obj
!                 self.buitinflag = builtin
  
      and a celldict maps strings to this version of cells.  builtinflag
--- 262,266 ----
              def __init__(self, obj=NULL, builtin=0):
                  self.objptr = obj
!                 self.builtinflag = builtin
  
      and a celldict maps strings to this version of cells.  builtinflag
***************
*** 306,329 ****
                      c.objptr = self.basedict[key]
                      assert c.objptr is not NULL # else "in" lied
!                     c.buitinflag = 1
                  else:
                      # There is no builtin with the same name.
!                     assert not c.buitinflag
  
              def keys(self):
                  return [k for k, c in self.__dict.iteritems()
!                         if c.objptr is not NULL and not c.buitinflag]
  
              def items(self):
                  return [k, c.objptr for k, c in self.__dict.iteritems()
!                         if c.objptr is not NULL and not c.buitinflag]
  
              def values(self):
                  preturn [c.objptr for c in self.__dict.itervalues()
!                         if c.objptr is not NULL and not c.buitinflag]
  
              def clear(self):
                  for c in self.__dict.values():
!                     if not c.buitinflag:
                          c.objptr = NULL
  
--- 306,329 ----
                      c.objptr = self.basedict[key]
                      assert c.objptr is not NULL # else "in" lied
!                     c.builtinflag = 1
                  else:
                      # There is no builtin with the same name.
!                     assert not c.builtinflag
  
              def keys(self):
                  return [k for k, c in self.__dict.iteritems()
!                         if c.objptr is not NULL and not c.builtinflag]
  
              def items(self):
                  return [k, c.objptr for k, c in self.__dict.iteritems()
!                         if c.objptr is not NULL and not c.builtinflag]
  
              def values(self):
                  preturn [c.objptr for c in self.__dict.itervalues()
!                         if c.objptr is not NULL and not c.builtinflag]
  
              def clear(self):
                  for c in self.__dict.values():
!                     if not c.builtinflag:
                          c.objptr = NULL
  
***************
*** 358,369 ****
              c = self.__dict.get(key)
              assert c is not None # else we were already out of synch
!             if c.buitinflag:
                  # Put us back in synch.
                  c.objptr = NULL
!                 c.buitinflag = 0
              # Else we're shadowing the builtin, so don't care that
              # the builtin went away.
  
!     Note that c.buitinflag protects from us erroneously deleting a
      module global of the same name.  Adding a new (key, value) builtin
      pair is similar:
--- 358,369 ----
              c = self.__dict.get(key)
              assert c is not None # else we were already out of synch
!             if c.builtinflag:
                  # Put us back in synch.
                  c.objptr = NULL
!                 c.builtinflag = 0
              # Else we're shadowing the builtin, so don't care that
              # the builtin went away.
  
!     Note that c.builtinflag protects from us erroneously deleting a
      module global of the same name.  Adding a new (key, value) builtin
      pair is similar:
***************
*** 379,386 ****
                  assert not c.builtinflag
                  c.objptr = value
!                 c.buitinflag = 1
              else:
                  # We're shadowing it already.
!                 assert not c.buitinflag
  
      Changing the value of an existing builtin can be viewed as deleting
--- 379,386 ----
                  assert not c.builtinflag
                  c.objptr = value
!                 c.builtinflag = 1
              else:
                  # We're shadowing it already.
!                 assert not c.builtinflag
  
      Changing the value of an existing builtin can be viewed as deleting