[Python-ideas] Simplifying .format() based string interpolation

Nick Coghlan ncoghlan at gmail.com
Fri Feb 7 10:47:43 CET 2014


Note that the current spelling of this is just "msg.format_map(locals())".

What the proposal is effectively asking for is a new non-string literal
type that creates an implicit closure, allowing the names to be referenced
without supplying them explicitly.

That's a significant new (and hard to understand) feature to replace a
fairly simple call.

Cheers,
Nick.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140207/c9e6e7a7/attachment.html>


More information about the Python-ideas mailing list