On Fri, Mar 24, 2006, Greg Ewing wrote: > > I've speculated that perhaps it should be illegal to > use an iterator that way, and you would instead have > to say > > for x from iterator: > > This would force people to keep the distinction firmly > in mind and might lead to less confusion.
How would you distinguish? What about objects that are their own iterator (such as files)? -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "Look, it's your affair if you want to play with five people, but don't go calling it doubles." --John Cleese anticipates Usenet _______________________________________________ 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