[Python-checkins] python/dist/src/Misc NEWS,1.757,1.758

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Tue, 06 May 2003 18:28:49 -0700


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv29652/Misc

Modified Files:
	NEWS 
Log Message:
SF bug #730296: Unexpected Changes in list Iterator

Reverted a Py2.3b1 change to iterator in subclasses of list and tuple.
They had been changed to use __getitem__ whenever it had been overriden
in the subclass.

This caused some usabilty and performance problems.  Also, it was
inconsistent with the rest of python where many container methods
access the underlying object directly without first checking for
an overridden getter.  Users needing a change in iterator behavior
should override it directly.



Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.757
retrieving revision 1.758
diff -C2 -d -r1.757 -r1.758
*** NEWS	6 May 2003 20:42:37 -0000	1.757
--- NEWS	7 May 2003 01:28:47 -0000	1.758
***************
*** 16,19 ****
--- 16,24 ----
    It's writable again.
  
+ - Reverted a 2.3 beta 1 change to iterators for subclasses of list and
+   tuple.  By default, the iterators now access data elements directly
+   instead of going through __getitem__.  If __getitem__ access is
+   preferred, then __iter__ can be overriden.
+ 
  Extension modules
  -----------------