On 09 Feb 2006 12:54:04 + (GMT)
Sion Arrowsmith <[EMAIL PROTECTED]> wrote:
> Terry Hancock <[EMAIL PROTECTED]> wrote:
> >[EMAIL PROTECTED] wrote:
> >> Just to present a complete picture, not mentioned in
> >this > thread are triple-quoted strings:
> >> [ ... ]
> >Also in the mode of beating a
Terry Hancock <[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] wrote:
>> Just to present a complete picture, not mentioned in this
>> thread are triple-quoted strings:
>> [ ... ]
>Also in the mode of beating a dead horse ... ;-)
>
>Some people prefer to use single quotes for 'labels' (i.e. a
>name wh
On Wed, 8 Feb 2006 11:57:00 -0600
[EMAIL PROTECTED] wrote:
> Just to present a complete picture, not mentioned in this
> thread are triple-quoted strings:
>
> 'abc' == '''abc''' == "abc" == """abc"""
>
> Triple-quoted strings are no different than regular
> strings, though they do allow liter
Just to present a complete picture, not mentioned in this thread are
triple-quoted strings:
'abc' == '''abc''' == "abc" == """abc"""
Triple-quoted strings are no different than regular strings, though they do
allow literal newlines to be embedded in the string. Their presence is most
often d
Thank you for all your help; it makes perfect sense now.
--
http://mail.python.org/mailman/listinfo/python-list
Steve Holden <[EMAIL PROTECTED]> wrote:
>Huy wrote:
>> I've been unable to find information clarifying this but. What is the
>> difference between 'somestring' and "somestring"?
>It's just easier to have two permitted string quotes. That way, if your
>string has an apostrophe in it you can say
>
Steve Holden wrote:
> It's just easier to have two permitted string quotes. That way, if your
> string has an apostrophe in it you can say
>
> s = "it's"
It's particularly handy if you are building strings of a language that
already has its own quotes, e.g. SQL or XML:
sql_snippet = " wher
Huy wrote:
> I've been unable to find information clarifying this but. What is the
> difference between 'somestring' and "somestring"? When I use type() it
> still reports as string. If there is a difference could someone point
> me to documentation or explain when to use and when not to? Hope
Huy wrote:
> I've been unable to find information clarifying this but. What is the
> difference between 'somestring' and "somestring"? When I use type() it
> still reports as string. If there is a difference could someone point
> me to documentation or explain when to use and when not to? Hope
I've been unable to find information clarifying this but. What is the
difference between 'somestring' and "somestring"? When I use type() it
still reports as string. If there is a difference could someone point
me to documentation or explain when to use and when not to? Hope I
sound clear.
--
10 matches
Mail list logo