Aahz wrote: > On Fri, Mar 24, 2006, Greg Ewing wrote: >> for x from iterator:
> How would you distinguish? What about objects that are their own > iterator (such as files)? Files would really and truly be iterators (i.e. they would have a next() method) and you would need to use for line from a_file: ... Greg _______________________________________________ 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