+ 5
Why is repr faster than str? 🐍
With timeit.timeit I've found out that using str constructor can even be twice slower than using the builtin function repr. Even though they often do the same task? Why? https://code.sololearn.com/cAVqZr1qXy9M/?ref=app
4 Antworten
+ 3
I dont know
+ 3
Check this.here is answer.
https://stackoverflow.com/questions/45376719/why-is-reprint-faster-than-strint
+ 3
Artur King perfect answer.
+ 3
Artur king you are officially right