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.
>
>
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
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
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
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
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
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}
>
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
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
>
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
10 matches
Mail list logo