On 06.05.13 08:54, Armin Rigo wrote:
Hi Simon,
On Mon, May 6, 2013 at 12:48 AM, Simon Cross <hodges...@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.
I highly appreciate this idea, too! Educating people to avoid
mis-use of "is" has probably more impact in the long term,
because the pep8 module is pretty often used as a measure of
code cleaning.
cheers - chris
--
Christian Tismer :^) <mailto:tis...@stackless.com>
Software Consulting : Have a break! Take a ride on Python's
Karl-Liebknecht-Str. 121 : *Starship* http://starship.python.net/
14482 Potsdam : PGP key -> http://pgp.uni-mainz.de
phone +49 173 24 18 776 fax +49 (30) 700143-0023
PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04
whom do you want to sponsor today? http://www.stackless.com/
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev