Re: [Python-ideas] Draft PEP on string interpolation

Aug. 25, 2015
3:51 a.m.
On 08/24/2015 07:55 PM, Andrew Barnert wrote:
I don't know what the untokenize problems are, so I'm not sure I can help there. I also don't think I'd base any real implementation on _string.formatted_parser: it won't be terribly efficient. I've created a project on bitbucket: https://bitbucket.org/ericvsmith/istring where I'm playing with a "join" method and a callback interface, without ever exposing the looping and parsing to the caller. I think that would be a better interface than an iterator exposing the various parts of the string. But, as Guido suggests above, it's all just an academic exercise to understand how to best use i-strings. I suggest providing feedback on their API before implementing anything more serious. Eric.
3494
Age (days ago)
3494
Last active (days ago)
0 comments
1 participants
participants (1)
-
Eric V. Smith