Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 56e7b42089c8 by Raymond Hettinger in branch '2.7':
Issue 12514: Use try/finally to assure that timeit restores GC when done.
http://hg.python.org/cpython/rev/56e7b42089c8
--
nosy: +python-dev
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 1cdb281a78ce by Raymond Hettinger in branch '3.2':
Issue 12514: Use try/finally to assure that timeit restores GC when done.
http://hg.python.org/cpython/rev/1cdb281a78ce
New changeset 7df53f5788a4 by Raymond
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
Thanks for the bug report and patch.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12514
New submission from Gareth Rees g...@garethrees.org:
If you call timeit.timeit and the timed code raises an exception, then garbage
collection is disabled. I have verified this in Python 2.7 and 3.2. Here's an
interaction with Python 3.2:
Python 3.2 (r32:88445, Jul 7 2011, 15:52:49)
Gareth Rees g...@garethrees.org added the comment:
Patch attached.
--
keywords: +patch
Added file: http://bugs.python.org/file22605/issue12514.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12514
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12514
___
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
Thank you. The patch looks correct. I will apply it as soon as I get a chance.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12514