wrote: > Steven D'Aprano <st...@pearwood.info> writes: >> It is never >> correct to avoid using "is" when you need to compare for identity. > > When is it ever necessary to compare for identity?
Ho-hum. MUDD game. def broadcast (sender, message): for p in all_players: if p is not sender: p.tell (message) # don't send a message to oneself Mel. -- http://mail.python.org/mailman/listinfo/python-list