Mandis Quotes (aka retiring """ and ''')
Max M
maxm at mxm.dk
Tue Oct 5 15:15:50 EDT 2004
Jeff Shannon wrote:
> Russell Nelson wrote:
> ISTM that these
> elaborate Mandis-quote schemes may significantly reduce the odds of
> needing to escape a string literal, but the cost (in clarity,
> transparency, and most importantly, ability to manipulate your code in
> anything other than an advanced, complying editor) is pretty high. I
> find '''triple quotes''' a lot easier to understand/explain than this
> scheme of defining arbitrary delimiters.
In fact, the triple quotes are just special cases of the Mandis quotes,
and would still be legal. No?
'''Hello world'''
'x'Hello world'x'
'4242424242'Hello world'4242424242'
same difference
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
More information about the Python-list
mailing list