[Python-ideas] Implicit string literal concatenation considered harmful?

Serhiy Storchaka storchaka at gmail.com
Thu May 16 09:20:00 CEST 2013


10.05.13 21:48, Guido van Rossum написав(ла):
> I just spent a few minutes staring at a bug caused by a missing comma
> -- I got a mysterious argument count error because instead of foo('a',
> 'b') I had written foo('a' 'b').
>
> This is a fairly common mistake, and IIRC at Google we even had a lint
> rule against this (there was also a Python dialect used for some
> specific purpose where this was explicitly forbidden).

Could your please run this lint rules against Python sources? I found at 
least one bug in Tools/scripts/abitype.py:

typeslots = [
     'tp_name',
     'tp_basicsize',
     ...
     'tp_subclasses',
     'tp_weaklist',
     'tp_del'
     'tp_version_tag'
]

http://bugs.python.org/issue17993




More information about the Python-ideas mailing list