|
From: Tony J I. (Tibs) <to...@ls...> - 2002-05-10 09:27:07
|
On single quotes for strings... David Goodger wrote: > Purely my preference. s'OK > I find it cleaner, and ' doesn't require shifting. Hmm. Since I started touch typing (about eight years into professional programming - I'm told it looks odd only using the fingers I do to type with) I'm fairly "blind" to what requires shifting and what doesn't - it just happens... Continued usage of C (and latterly Java as well) has constrained me to use `"` as the string quote character - it's what I'm used to. That's *not* an argument for me to try and force it onto other people (gods forbid!), but it's (probably) the selfish reason I don't want to change old habits in Python (and heck, I've been doing it that way in Python as well now since 1.0, back when I still occasionally worked on Fortran77 code). I think it *is* reasonable to ask that people working on an existing body of code follow the conventions for that code - so if I were to edit DPS/reST code (using the old term for that part of Docutils) it is *polite* [1]_ to follow the internal conventions. And for that reason it *is* worth spelling out the conventions you have used and prefer. .. [1] Trying to be polite, in a reasonable manner, is a Good Thing, I think. (look - I remembered the space after the dots!) > I was using both for a while, but found it looked > cluttered, so standardized on one. Interesting. I suspect that the visual impact of two quotes is what I'm attached to... Tibs -- Tony J Ibbs (Tibs) http://www.tibsnjoan.co.uk/ A single element tuple needs a trailing comma, and an empty tuple needs brackets to distinguish it from a coffee stain. - Duncan Booth, in his intro to Python for the ACCU Spring 2002 conference My views! Mine! Mine! (Unless Laser-Scan ask nicely to borrow them.) |