[ditrack commit] r1119 - src/trunk/tests/cmd-cat/lma.tc

Vlad Skvortsov vss at 73rus.com
Wed Jan 24 10:37:58 PST 2007


Иван Глушков wrote:


[skipped]

>> > +letters = ['a', 'A']
>>
>> Just a minor nit: we tend to use double qoutes throughout the code (and
>> particularly in this testcase).
>
> http://www.python.org/doc/1.4/tut/node68.html:
> "There is no semantic difference between strings surrounded by single
> or double quotes"
>
> Why double?

It is not about semantics, it's about the style.

http://www.python.org/doc/essays/styleguide.html:

"A style guide is about consistency. Consistency with this style guide 
is important. Consistency within a project is more important. 
Consistency within one module or function is most important."

If there is a particular reason why single quotes are preferable, the 
way to go is to change *all* occurrences within the file (and module, 
and project), not just one single line.

-- 
Vlad Skvortsov, vss at 73rus.com, http://vss.73rus.com



More information about the Dev mailing list