[Python-Dev] optimization required: .format() is much slower than %

Eric Smith eric+python-dev at trueblade.com
Tue May 27 16:04:01 CEST 2008


Nick Coghlan wrote:
> Secondly, the string % operator appears to have an explicit optimisation 
> for the 'just return str(self)' case. This optimisation is missing from 
> the new string format method.

I'll see if I can optimize this case.


More information about the Python-Dev mailing list