Re: [Python-Dev] On quote styles

2008-05-12 Thread David Borowitz
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

Re: [Python-Dev] On quote styles

2008-05-12 Thread skip
> "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

Re: [Python-Dev] On quote styles

2008-05-12 Thread Barry Warsaw
-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

Re: [Python-Dev] On quote styles

2008-05-12 Thread Benji York
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 _

Re: [Python-Dev] On quote styles

2008-05-12 Thread Isaac Morland
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

Re: [Python-Dev] On quote styles

2008-05-10 Thread Nick Coghlan
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.

Re: [Python-Dev] On quote styles

2008-05-10 Thread skip
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

Re: [Python-Dev] On quote styles

2008-05-10 Thread Greg Ewing
[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

Re: [Python-Dev] On quote styles

2008-05-10 Thread Terry Reedy
<[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

Re: [Python-Dev] On quote styles

2008-05-10 Thread Georg Brandl
[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

[Python-Dev] On quote styles

2008-05-10 Thread skip
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