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/2003-October/039388.html below:

[Python-Dev] Can we please have a better dict interpolation syntax?

[Python-Dev] Can we please have a better dict interpolation syntax? [Python-Dev] Can we please have a better dict interpolation syntax?Barry Warsaw barry at python.org
Thu Oct 23 11:58:08 EDT 2003
On Thu, 2003-10-23 at 11:18, Fred L. Drake, Jr. wrote:
> Barry Warsaw writes:
>  > Then again, see my last post.  I'm not sure anything needs to be added
>  > to core Python to support useful $-strings.  Or maybe it can be
>  > implemented as a library module (or part of a 'textutils' package).
> 
> +1 on adding this as a module.

Wasn't there talk of a textutils package around the time of
textwrap.py?  Maybe add that for Py2.4?

> I've managed to implement this a few times, and it would be nice to
> just import the same implementation from everywhere I needed it.
> 
> One note: calling this "interpolation" (at least when describing it to
> end users) is probably a mistake; "substitution" makes more sense to
> people not ingrained in communities where it's called interpolation.
> It might be ok to call it interpolation for programmers,
> but... there's no need for two different names for it.  ;-)

Again +1 isn't strong enough. :)  End users understand "substitution",
they don't understand "interpolation".  If started to use the former
everywhere now.

-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-dev/attachments/20031023/765c511d/attachment.bin
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