Re: apostrophe or double quote?

2006-02-10 Thread Terry Hancock
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

Re: apostrophe or double quote?

2006-02-09 Thread Sion Arrowsmith
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

Re: apostrophe or double quote?

2006-02-08 Thread Terry Hancock
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

Re: apostrophe or double quote?

2006-02-08 Thread skip
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

Re: apostrophe or double quote?

2006-02-08 Thread Huy
Thank you for all your help; it makes perfect sense now. -- http://mail.python.org/mailman/listinfo/python-list

Re: apostrophe or double quote?

2006-02-08 Thread Sion Arrowsmith
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 >

Re: apostrophe or double quote?

2006-02-08 Thread Christoph Zwerschke
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

Re: apostrophe or double quote?

2006-02-07 Thread Steve Holden
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

Re: apostrophe or double quote?

2006-02-07 Thread James Stroud
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

apostrophe or double quote?

2006-02-07 Thread Huy
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. --