[pypy-dev] x is y <=> id(x)==id(y)
Armin Rigo
arigo at tunes.org
Mon May 6 08:54:49 CEST 2013
Hi Simon,
On Mon, May 6, 2013 at 12:48 AM, Simon Cross <hodgestar at gmail.com> wrote:
> I was thinking along similar signs -- we could ask for things like "x
> is ''" or "x is 3" to be added to PEP8 (I think any use of "is" with a
> constant on one or more sides is likely suspect).
That may be a good idea. If the compiler emits SyntaxWarnings for
these cases, then maybe it's all we need to cover most of the bad
usages.
A bientôt,
Armin.
More information about the pypy-dev
mailing list