[Python-Dev] with_traceback (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 1 00:45:17 CET 2007
- Previous message: [Python-Dev] with_traceback
- Next message: [Python-Dev] with_traceback
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] with_traceback
- Next message: [Python-Dev] with_traceback
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]