[Python-Dev] On quote styles (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sun May 11 02:29:04 CEST 2008
- Previous message: [Python-Dev] On quote styles
- Next message: [Python-Dev] On quote styles
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] On quote styles
- Next message: [Python-Dev] On quote styles
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]