"Raymond Hettinger" <[EMAIL PROTECTED]> writes: > Not really. Once range() starts returning an iterator, > that will be the new, basic norm. With that as a foundation, > it would be suprising if map() and enumerate() and zip() > did not return iterators. Learn once, use everywhere.
Except that range() is usually used in a loop, while map() and filter() are not. It seems to me that these two functions are going to expose naked iterators to beginners (well, intermediates) more than the other changes will. -- KBK _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com