[Python-3000] Proposed changes to PEP3101 advanced string formatting -- please discuss and vote!

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Mar 14 06:07:13 CET 2007


Patrick Maupin wrote:

> Out of curiosity, do you feel that eval()'s use of this is somehow
> different?  I haven't been able to figure out a real difference yet.

I think the difference is that when you see eval()
you know something dangerous is going on, but most
uses of format() would be harmless -- *except* when
given no arguments. It would be an easy thing to
overlook when reading code.

If this functionality is to be provided, I think
it should at least have a different method name
to make it stand out more clearly.

--
Greg



More information about the Python-3000 mailing list