[issue12514] timeit disables garbage collection if timed code raises an exception

2011-07-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the bug report and patch. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue12514] timeit disables garbage collection if timed code raises an exception

2011-07-29 Thread Roundup Robot
Roundup Robot 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 Hettinger in branch 'default': Issue 12

[issue12514] timeit disables garbage collection if timed code raises an exception

2011-07-28 Thread Roundup Robot
Roundup Robot 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 ___ Python

[issue12514] timeit disables garbage collection if timed code raises an exception

2011-07-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you. The patch looks correct. I will apply it as soon as I get a chance. -- ___ Python tracker ___ _

[issue12514] timeit disables garbage collection if timed code raises an exception

2011-07-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12514] timeit disables garbage collection if timed code raises an exception

2011-07-07 Thread Gareth Rees
Gareth Rees added the comment: Patch attached. -- keywords: +patch Added file: http://bugs.python.org/file22605/issue12514.patch ___ Python tracker ___ _

[issue12514] timeit disables garbage collection if timed code raises an exception

2011-07-07 Thread Gareth Rees
New submission from Gareth Rees : 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) [GCC 4.2.1 (Apple I