Ethan Furman wrote:

Instead of using 'is' use '=='. Maybe not as cute, but definitely more robust!

It's also just as efficient if you use strings that
resemble identifiers, because they will be interned,
so the comparison will end up just doing an indentity
test anyway.

--
Greg
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to