Antoine Pitrou <pit...@free.fr> added the comment: > I would like to have an iterator version as well, but I also dislike > another function (especially the "x" prefix). How about adding a > keyword argument to select iterator behaviour?
Changing the return type based on an argument is generally frown upon so, if anything, I think it would be better to have a separate function (whatever its name). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11406> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com