[Python-Dev] On quote styles
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun May 11 02:29:04 CEST 2008
skip at pobox.com wrote:
> While Python doesn't have a char type (yet), I still find the distinction
> between 'c' and "abc" useful to show intent (especially given my C
> background
The way I tend to use them is that "xxx" is for data
operated on by the program and seen by the user,
and 'xxx' is for things that are only used internally,
e.g. enumerated type values and attribute names for use
by getattr().
I wouldn't like to see any guideline that said you
should only use double quotes or something like that.
--
Greg
More information about the Python-Dev
mailing list