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

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Oct 22 23:32:19 EDT 2003


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.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	 | A citizen of NewZealandCorp, a	 |
Christchurch, New Zealand	 | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz	 +--------------------------------------+


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /