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/039437.html below:

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

[Python-Dev] Can we please have a better dict interpolation s yntax? [Python-Dev] Can we please have a better dict interpolation s yntax?Geoffrey Talvola gtalvola at nameconnector.com
Fri Oct 24 11:07:35 EDT 2003
Greg Ewing wrote:
> Guido:
> 
>> Wouldn't this be even better?
>> 
>>     "create index ${table}_lid1_idx on $table($lid1)" % params
> 
> I wouldn't object to that. I'd have expected *you* to
> object to it, though, since it re-defines the meaning
> of "$" in an interpolated string. I was just trying
> to suggest something that would be backward-compatible.
> 

$ is currently unused in Python AFAIK.  So why not:

    "create index ${table}_lid1_idx on $table($lid1)" $ params

No backward compatibility problems at all.

- Geoff

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