3 ms·
On the contrary, the time per inner iteration is slightly higher this way and the same conclusions hold: 1. python3.2 str() is at least as fast as '%s' formatt
by jedbrown 14y ago
On the contrary, the time per inner iteration is slightly higher this way and the same conclusions hold:
1. python3.2 str() is at least as fast as '%s' formatting
2. '%s' is slightly faster than str() with python2.7
3. theint.__str__() is faster than either alternative in all cases