[Python-checkins] CVS: python/dist/src/Misc NEWS,1.157,1.158

Tim Peters tim_one@users.sourceforge.net
Sat, 05 May 2001 03:06:48 -0700


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

Modified Files:
	NEWS 
Log Message:
Make 'x in y' and 'x not in y' (PySequence_Contains) play nice w/ iterators.
NEEDS DOC CHANGES
A few more AttributeErrors turned into TypeErrors, but in test_contains
this time.
The full story for instance objects is pretty much unexplainable, because
instance_contains() tries its own flavor of iteration-based containment
testing first, and PySequence_Contains doesn't get a chance at it unless
instance_contains() blows up.  A consequence is that
    some_complex_number in some_instance
dies with a TypeError unless some_instance.__class__ defines __iter__ but
does not define __getitem__.


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.157
retrieving revision 1.158
diff -C2 -r1.157 -r1.158
*** NEWS	2001/05/05 05:36:48	1.157
--- NEWS	2001/05/05 10:06:15	1.158
***************
*** 24,32 ****
      min()
      reduce()
!     string.join()
      tuple()
      unicode.join()
      XXX TODO zip()
!     XXX TODO 'x in y'
  
  What's New in Python 2.1 (final)?
--- 24,32 ----
      min()
      reduce()
!     .join() method of strings
      tuple()
      unicode.join()
      XXX TODO zip()
!     'x in y' and 'x not in y'
  
  What's New in Python 2.1 (final)?