Carsten Haese <[EMAIL PROTECTED]> writes: > You have a point. Here is my revised solution: > > assert current_player in p > opponents = tuple(x for x in p if x is not current_player)
Still wrong on two counts. First, assert is a no-op if optimization is turned on. Second, your version returns a different result from the original if current_player occurs in p more than once. -- http://mail.python.org/mailman/listinfo/python-list