Coding Style: Quotes
Thorsten Kampe
thorsten at thorstenkampe.de
Fri Sep 13 16:05:45 EDT 2002
* John Waycott
> I'm curious if others have adopted any standards for choice of single vs.
> double quotation marks to delimit strings. A look through the standard
> library reveals the choice of one over the other is rather arbitrary. I
> suspect it really makes no difference, but the question has come up during a
> code review.
Python itself seems to "prefer" single quotes slightly:
1: >>> "String"
1: 'String'
2: >>>
Thorsten
More information about the Python-list
mailing list