Difference between double and single quotes

Aahz Maruch aahz at netcom.com
Tue Aug 1 11:47:08 EDT 2000


In article <8m64ij$f2k$1 at nnrp1.deja.com>,  <pauljolly at my-deja.com> wrote:
>
>Please can someone tell me whether Python distinguishes between double
>and single quotes in any way? This was brought to my attention by a
>friend who queried my use of double and single quotes, saying that in
>the UNIX shell a distinction is made.

In addition to all the other comments, remember that if you have quoting
problems, use """ or ''' (the two triple-quotes) -- you can avoid almost
all quote-quoting that way.
--
                      --- Aahz (Copyright 2000 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

NOTE: end of September, Earthlink kills Netcom.  My new permanent address is 
aahz at pobox.com.  I have not decided where to set my primary shell account.
Please do not send me e-mail condolences; my mailbox is already too big.



More information about the Python-list mailing list