[Python-checkins] python/dist/src/Misc NEWS,1.395,1.396

gvanrossum@sourceforge.net gvanrossum@sourceforge.net
2002年4月26日 12:41:26 -0700


Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv23330/Misc
Modified Files:
	NEWS 
Log Message:
- New builtin function enumerate(x), from PEP 279. Example:
 enumerate("abc") is an iterator returning (0,"a"), (1,"b"), (2,"c").
 The argument can be an arbitrary iterable object.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.395
retrieving revision 1.396
diff -C2 -d -r1.395 -r1.396
*** NEWS	26 Apr 2002 02:49:14 -0000	1.395
--- NEWS	26 Apr 2002 19:40:49 -0000	1.396
***************
*** 7,10 ****
--- 7,14 ----
 Core and builtins
 
+ - New builtin function enumerate(x), from PEP 279. Example:
+ enumerate("abc") is an iterator returning (0,"a"), (1,"b"), (2,"c").
+ The argument can be an arbitrary iterable object.
+ 
 - The assert statement no longer tests __debug__ at runtime. This means
 that assert statements cannot be disabled by assigning a false value

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