A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-May/079301.html below:

[Python-Dev] On quote styles

[Python-Dev] On quote styles [Python-Dev] On quote stylesGreg 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4