Re: Question about quoting style.

2007-10-02 Thread Steve Holden
James Stroud wrote: > Bruno Desthuilliers wrote: >> First point is that Python has no "variable interpolation". > > If you squint, it kind of does*: > > >>> print '%(language)s has %(#)03d quote types.' % \ > {'language': "Python", "#": 2} > Python has 002 quote types. > >

Re: Question about quoting style.

2007-10-02 Thread Bruno Desthuilliers
J. Cliff Dyer a écrit : (snip) > You missed another dimension of python string types. I didn't "missed" - I choosed to skip the subject since it was not about quoting style. Not to say I necessarily made the best choice... -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about quoting style.

2007-10-02 Thread Bruno Desthuilliers
Gabriel Genellina a écrit : > En Mon, 01 Oct 2007 19:10:11 -0300, James Stroud <[EMAIL PROTECTED]> > escribi�: > >> Bruno Desthuilliers wrote: >>> First point is that Python has no "variable interpolation". >> >> If you squint, it kind of does*: >> >> >>> print '%(language)s has %(#)03d quote

Re: Question about quoting style.

2007-10-01 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Steven W. Orr wrote: > foo=bar # No quotes needed > echo $foo # Also none needed Actually, it's not clear to me that quotes will never be needed on the second line. Unless foo is always going to have the value "bar". -- http://mai

Re: Question about quoting style.

2007-10-01 Thread J. Cliff Dyer
Bruno Desthuilliers wrote: > Steven W. Orr a écrit : > >> Python has a number of "quoting" 'options' to help """with >> times when""" one way may be more convenient than another. >> >> In the world of shell scripting, I use a technique that I call minimal >> quoting. It works like this: >> >> f

Re: Question about quoting style.

2007-10-01 Thread Gabriel Genellina
En Mon, 01 Oct 2007 19:10:11 -0300, James Stroud <[EMAIL PROTECTED]> escribi�: > Bruno Desthuilliers wrote: >> First point is that Python has no "variable interpolation". > > If you squint, it kind of does*: > > >>> print '%(language)s has %(#)03d quote types.' % \ > {'language

Re: Question about quoting style.

2007-10-01 Thread Carsten Haese
On Mon, 2007-10-01 at 15:10 -0700, James Stroud wrote: > Bruno Desthuilliers wrote: > > First point is that Python has no "variable interpolation". > > If you squint, it kind of does*: > > >>> print '%(language)s has %(#)03d quote types.' % \ > {'language': "Python", "#": 2} >

Re: Question about quoting style.

2007-10-01 Thread James Stroud
Bruno Desthuilliers wrote: > First point is that Python has no "variable interpolation". If you squint, it kind of does*: >>> print '%(language)s has %(#)03d quote types.' % \ {'language': "Python", "#": 2} Python has 002 quote types. You might think if the dict as a name s

Re: Question about quoting style.

2007-10-01 Thread Bruno Desthuilliers
Steven W. Orr a écrit : > Python has a number of "quoting" 'options' to help """with > times when""" one way may be more convenient than another. > > In the world of shell scripting, I use a technique that I call minimal > quoting. It works like this: > > foo=bar# No quotes needed >

Question about quoting style.

2007-10-01 Thread Steven W. Orr
Python has a number of "quoting" 'options' to help """with times when""" one way may be more convenient than another. In the world of shell scripting, I use a technique that I call minimal quoting. It works like this: foo=bar # No quotes needed echo $foo # Also none