Willi Richert <w.rich...@gmx.net> added the comment: No particular reason, besides that it is ripped off of pop().
Your solution (omitting "register") gives the same performance. Looks cleaner, of course. The patch tries to provide a clean way of "for x in some_set: break", as explained above. See the recent python-dev mailing list musings. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7212> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com