Python itself doesn't appear to follow that principle:
>>> "Ain't nothin' stoppin' this from usin' \"double quotes\"."
'Ain\'t nothin\' stoppin\' this from usin\' "double quotes".'
IMHO it's a useful rule of thumb, but like most of the other alternatives
presented in this thread, taken to extremes
> "Benji" == Benji York <[EMAIL PROTECTED]> writes:
Benji> One such entry could be "Do what python does.":
>>> 'I am a string.'
'I am a string.'
>>> "I'm a string"
"I'm a string"
That would be the principle of fewest backslashes. ;-)
Skip
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On May 12, 2008, at 5:16 PM, Benji York wrote:
On Sat, May 10, 2008 at 10:51 PM, <[EMAIL PROTECTED]> wrote:
It might be useful to have a wiki page which identified some of the
conventions people use.
One such entry could be "Do what python does
On Sat, May 10, 2008 at 10:51 PM, <[EMAIL PROTECTED]> wrote:
> It might be useful to have a wiki page which identified some of the
> conventions people use.
One such entry could be "Do what python does.":
>>> 'I am a string.'
'I am a string.'
>>> "I'm a string"
"I'm a string"
--
Benji York
_
On Sun, 11 May 2008, Greg Ewing wrote:
While Python doesn't have a char type (yet), I still find the distinction
between 'c' and "abc" useful to show intent (especially given my C
background
The way I tend to use them is that "xxx" is for data
operated on by the program and seen by the user,
a
Greg Ewing wrote:
I wouldn't like to see any guideline that said you
should only use double quotes or something like that.
Nah, it was more a philosophical discussion prompted by a comment from
me regarding my personal reasons for preferring different styles of
quotes in certain situations.
Greg> I wouldn't like to see any guideline that said you should only use
Greg> double quotes or something like that.
It might be useful to have a wiki page which identified some of the
conventions people use.
Skip
___
Python-Dev mailing list
P
[EMAIL PROTECTED] wrote:
While Python doesn't have a char type (yet), I still find the distinction
between 'c' and "abc" useful to show intent (especially given my C
background
The way I tend to use them is that "xxx" is for data
operated on by the program and seen by the user,
and 'xxx' is fo
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
|
| Moving from python-checkins and giving this topic a proper subject. The
| original thread started here with a checkin by Benjamin:
|
|http://mail.python.org/pipermail/python-checkins/2008-May/069181.html
To me, those changes ar
[EMAIL PROTECTED] schrieb:
Moving from python-checkins and giving this topic a proper subject. The
original thread started here with a checkin by Benjamin:
http://mail.python.org/pipermail/python-checkins/2008-May/069181.html
While Python doesn't have a char type (yet), I still find the di
Moving from python-checkins and giving this topic a proper subject. The
original thread started here with a checkin by Benjamin:
http://mail.python.org/pipermail/python-checkins/2008-May/069181.html
While Python doesn't have a char type (yet), I still find the distinction
between 'c' and "a
11 matches
Mail list logo