Re: Mandis Quotes (aka retiring """ and ''')
From: Eric Pederson (whereU_at_now.com)
Date: 10/05/04
- Next message: Dan Perl: "Re: Miscellaneous personal prejudices (was: Dr. Dobb's Python-URL! - weekly Python news and links (Oct 4))"
- Previous message: Andrew Dalke: "Re: New to Python: Features"
- Maybe in reply to: Russell Nelson: "Mandis Quotes (aka retiring """ and ''')"
- Next in thread: David Fraser: "Re: Mandis Quotes (aka retiring """ and ''')"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: nelson@crynwr.com, python-list@python.org Date: Mon, 4 Oct 2004 21:56:41 -0800
Russell Nelson wrote:
> If you need to put a single quote in, then you put
> an arbitrary string in-between the single quotes which does NOT
> appear in the string. For example, "Bill's house" becomes
> 'x'Bill's house'x'.
So possible examples might be:
'xx'somebody's mother'xx'
'xy'somebody's father'xy'
'wink'somebody's uncle'wink'
'quote'somebody's body'quote'
not terrible easy on the eyes, and why use the single quote at all? Why not use a similar pattern like this
<quote>somebody's body<quote>
or would we then worry that we might want to quote some angle bracketed mark-up?
it seems like the problem is what to use as a unique delimiter. Personally I am all for using u5421 [ᔭ], but I suspect we might risk the ire of Nanuk. So rather than going TMTOWTDI with 'x' and 'earl' and 'ernie' why don't we declare a new unicode symbol for quoting (how do you draw an endless loop graphic?)?
Of course, when we need to quote some text which uses the new quoting unicode symbol...
we'll just escape it with a \.
[I like '''triple quotes''' though if they ever catch on in the mainstream, they'll be useless - because they will wind up in strings]
Eric Pederson
:::::::::::::::::::::::::::::::::::
domainNot="@something.com"
domainIs=domainNot.replace("s","z")
ePrefix="".join([chr(ord(x)+1) for x in "do"])
mailMeAt=ePrefix+domainIs
:::::::::::::::::::::::::::::::::::
- Next message: Dan Perl: "Re: Miscellaneous personal prejudices (was: Dr. Dobb's Python-URL! - weekly Python news and links (Oct 4))"
- Previous message: Andrew Dalke: "Re: New to Python: Features"
- Maybe in reply to: Russell Nelson: "Mandis Quotes (aka retiring """ and ''')"
- Next in thread: David Fraser: "Re: Mandis Quotes (aka retiring """ and ''')"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|