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/2002-June/025716.html below:

PEP 292, Simpler String Substitutions

[Python-Dev] Re: PEP 292, Simpler String SubstitutionsFrançois Pinard pinard@iro.umontreal.ca
20 Jun 2002 15:15:41 -0400
[Guido van Rossum]

> +1 on (e.g.) a text module.
> -1 on reusing the string module.

_A_ text module is OK.  But please, avoid naming such a module "text".
Coming to Python, I had to loose the habit of naming the usual string
work-variable "string", because it would conflict with the module name.
(Some use `s', but this is more close to algebra than programming, as for
programming, clear names are usually better.)  So, I have tons of programs
and scripts using "text" instead for the usual string work-variable.
It would be a pain having to revise this all, making room for "import text".

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard




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