<div dir="ltr"><div>Thanks, this looks much better, if we ever want to go in this direction. (Though I think you may want to separate the field names into two parts, the expression text and the format spec.)<br><br></div>Can you work with the team at <a href="mailto:peps@python.org">peps@python.org</a> to get a PEP number for this?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 28, 2015 at 1:34 AM, Mike Miller <span dir="ltr"><<a href="mailto:python-ideas@mgmiller.net" target="_blank">python-ideas@mgmiller.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I was able to get this done tonight. There's still simplifications to be done, perhaps keeping the string fragments in one piece? Also, a lot of things need to be passed to the constructor to avoid parsing the template twice.<br>
<br>
Positional arguments are working however, and we're back to inheriting from str. It is now rendering into the "real" string, and everything seems to work without the magic methods. ;)<br>
<br>
Thanks,<div class="HOEnZb"><div class="h5"><br>
-Mike<br>
<br>
On 08/27/2015 02:02 PM, Guido van Rossum wrote:<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)</div>
</div>