Ben Finney <ben+pyt...@benfinney.id.au>:

> Use ‘==’, since that's all that matters for getting a value that will
> work fine.

You are telling me to use '==' if I choose string objects and 'is' if I
choose some other objects.

I prefer a solution that works regardless of what objects I choose for
identifiers.

There really is no taboo against string object identity if you know what
you are doing.


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to