[pypy-dev] comparing strings using is does not works

William ML Leslie william.leslie.ttg at gmail.com
Thu Jun 6 08:14:22 CEST 2013


On 6 June 2013 16:09, Amaury Forgeot d'Arc <amauryfa at gmail.com> wrote:
> Don't use "is" with immutable objects (except with the singletons: None,
> True, False)

Never with True or False either.  It's required to work by the
language definition, but it's still nonsense.

--
William Leslie

Notice:
Likely much of this email is, by the nature of copyright, covered
under copyright law.  You absolutely may reproduce any part of it in
accordance with the copyright law of the nation you are reading this
in.  Any attempt to deny you those rights would be illegal without
prior contractual agreement.


More information about the pypy-dev mailing list