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/2004-August/048443.html below:

[Python-Dev] Alternative Implementation for PEP 292: Simple String Substitutions

[Python-Dev] Alternative Implementation for PEP 292: Simple String SubstitutionsAahz aahz at pythoncraft.com
Sat Aug 28 01:39:58 CEST 2004
On Fri, Aug 27, 2004, Raymond Hettinger wrote:
>
> When application is remote from instantiation (for instance, when a
> template argument is supplied to a function), we get several problems.
> Given a line like "r = t % m", it is hard to verify that the code is
> correct.  Should there be KeyError trapping?  Can m be a tuple? Is t a
> %template, a safetemplate, or dollartemplate?  Is the result a str or
> Unicode object?  Should the decision of safe vs regular substitution be
> made at the point of instantiation or application?

All right, this moves me to +1, in the absence of any good arguments in
favor of keeping the class-based system.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"To me vi is Zen.  To use vi is to practice zen.  Every command is a
koan.  Profound to the user, unintelligible to the uninitiated.  You
discover truth everytime you use it."  --reddy at lion.austin.ibm.com
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