Éric Araujo <mer...@netwok.org> added the comment: > Changing “if s in 'yn'” to “if s in ('y', 'n')” is not really an > improvement. It’s not more readable to always use tuples or frozensets > for membership testing; str has __contains__ for a reason :)
Let me eat my words: using “in 'yn'” matches '' and 'yn', which we don’t want. Changed in 10fd0d0895a1. ---------- versions: +Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8591> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com