A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-November/040544.html below:

[Python-Dev] Banishing apply(), buffer(), coerce(), and intern()

[Python-Dev] Banishing apply(), buffer(), coerce(), and intern()Raymond Hettinger python at rcn.com
Sun Nov 30 23:42:55 EST 2003
> > Yes, backticks will be gone in 3.0.  But I expect there's no hope of
> > getting rid of them earlier -- they've been used too much.  I
suspect
> 
> Then let's kill all use of backticks in the standard library. There's
> a lot of them.

Advisory from a micro-performance hawk:  Backticks are faster than
repr()

>>> from timeit import Timer
>>> min(Timer('`x`', 'x=1').repeat(3))
1.4857213496706265
>>> min(Timer('repr(x)', 'x=1').repeat(3))
1.7748914665012876


Raymond Hettinger


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4