[Python-checkins] r65188 - python/trunk/Doc/whatsnew/2.6.rst

raymond.hettinger python-checkins at python.org
Tue Jul 22 21:00:47 CEST 2008


Author: raymond.hettinger
Date: Tue Jul 22 21:00:47 2008
New Revision: 65188
Log:
Tuples now have both count() and index().
Modified:
 python/trunk/Doc/whatsnew/2.6.rst
Modified: python/trunk/Doc/whatsnew/2.6.rst
==============================================================================
--- python/trunk/Doc/whatsnew/2.6.rst	(original)
+++ python/trunk/Doc/whatsnew/2.6.rst	Tue Jul 22 21:00:47 2008
@@ -1441,13 +1441,15 @@
 it will be returned if *iterator* has been exhausted; otherwise,
 the :exc:`StopIteration` exception will be raised. (:issue:`2719`)
 
-* Tuples now have an :meth:`index` method matching the list type's
- :meth:`index` method::
+* Tuples now have :meth:`index` and :meth:`count` methods matching the
+ list type's :meth:`index` and :meth:`count` methods::
 
 >>> t = (0,1,2,3,4)
 >>> t.index(3)
 3
 
+ (Contributed by Raymond Hettinger)
+
 * The built-in types now have improved support for extended slicing syntax,
 where various combinations of ``(start, stop, step)`` are supplied.
 Previously, the support was partial and certain corner cases wouldn't work.


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /