[Python-checkins] r62916 - sandbox/trunk/release/release.py

Nick Coghlan ncoghlan at gmail.com
Fri May 9 03:48:45 CEST 2008


benjamin.peterson wrote:
> Author: benjamin.peterson
> Date: Fri May  9 02:55:54 2008
> New Revision: 62916
> 
> Log:
> Fix some style things (Barry, I like double quotes.)

<random fact>
I only realised a couple of months ago *why* I prefer to use 
double-quotes for string literals. Aside from the fact of having a C/C++ 
background (where you don't have a choice - you have to use 
double-quotes for string literals), it's almost entirely due to the fact 
that using an *apostrophe* in a string literal is really common, but 
using an actual quote mark is quite rare.

Because I habitually use double-quotes on strings, the 
single-quote/apostrophe becomes just another character. When I've 
written or worked on code that uses primarily single-quoted strings, 
using an apostrophe is a pain, because I either have to escape it or 
change the quote markers for the string (and then that string is 
inconsistent with the other strings in the code).
</random fact>

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-checkins mailing list