[Python-checkins] CVS: python/nondist/peps pep-0234.txt,1.4,1.5

Guido van Rossum gvanrossum@users.sourceforge.net
Thu, 26 Apr 2001 06:40:02 -0700


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

Modified Files:
	pep-0234.txt 
Log Message:
Adding MAL's comment about next() vs. __next__().


Index: pep-0234.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0234.txt,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** pep-0234.txt	2001/04/23 20:04:59	1.4
--- pep-0234.txt	2001/04/26 13:39:59	1.5
***************
*** 103,107 ****
      should also be a primitive operation next(x) that would call
      x.__next__(), and this just looks like adding complexity without
!     benefit.  So I think it's better to stick with next().
  
  
--- 103,113 ----
      should also be a primitive operation next(x) that would call
      x.__next__(), and this just looks like adding complexity without
!     benefit.  So I think it's better to stick with next().  On the
!     other hand, Marc-Andre Lemburg points out: "Even though .next()
!     reads better, I think that we should stick to the convention that
!     interpreter APIs use the __xxx__ naming scheme.  Otherwise, people
!     will have a hard time differentiating between user-level protocols
!     and interpreter-level ones. AFAIK, .next() would be the first
!     low-level API not using this convention."