Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment: Why do you call this "dangerous"? because the object can be iterated only once? But reversed() does the same thing. And all iterators objects must also implement the __iter__ method that return themselves, otherwise they cannot be used in a for loop. Better start with such an object.
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8376> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com