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/2007-March/071426.html below:

[Python-Dev] with_traceback

[Python-Dev] with_traceback [Python-Dev] with_tracebackGreg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 1 00:45:17 CET 2007
glyph at divmod.com wrote:

> Or modify __new__ on your particular heavily-optimized
> exception to have a free-list,

Doing that in Python is likely to have as much overhead as
creating an instance.

The simple and obvious optimisation is to pre-create the
instance, but we're proposing to make the obvious way
wrong for subtle reasons. That doesn't seem pythonic
to me.

--
Greg
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