Why """, not '''?
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Wed Mar 5 19:07:00 EST 2008
On Wed, 05 Mar 2008 23:27:21 +0000, Matthew Woodcraft wrote:
> Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> wrote:
>>On Wed, 05 Mar 2008 19:19:08 +0000, Matthew Woodcraft wrote:
>>> One advantage is that a dumb syntax highlighter is more likely to cope
>>> well if the content includes an apostrophe.
>
>> But if the content contains double-quote marks, the "dumb syntax
>> highligher" is more likely to cope well if you use '''.
>
> That's right. But apostrophes are rather more common than quote marks in
> English text.
Surely it would depend on the type of text: pick up any random English
novel containing dialogue, and you're likely to find a couple of dozen
pairs of quotation marks per page, against a few apostrophes.
--
Steven
More information about the Python-list
mailing list