[Python-ideas] Briefer string format

Eric V. Smith eric at trueblade.com
Mon Aug 3 04:43:03 CEST 2015


On 8/2/2015 7:46 PM, Mike Miller wrote:
> Hi,
> 
> I don't understand how we got to arbitrary expressions.

I think here:
https://mail.python.org/pipermail/python-ideas/2015-July/034701.html

> There was probably an edge case or two, but I wasn't expecting
> str(eval(s)) to be the answer, and one I'm not sure I'd want.

As I pointed out earlier, it's not exactly str(eval(s)). Also, what's
your concern with the suggested approach? There are no security concerns
as there would be with eval-ing arbitrary strings.

Eric.


More information about the Python-ideas mailing list