Author rhettinger
Recipients amaury.forgeotdarc, donmez, gideon, rhettinger
Date 2008-08-29.20:34:41
SpamBayes Score 1.88622e-07
Marked as misclassified No
Message-id <1220042082.95.0.716782617483.issue3720@psf.upfronthosting.co.za>
In-reply-to
Content
Go for it.  There's really no question about fixing possible 
segfaulters.  Was just voicing my displeasure at this sort of 
exercise.  The code has been around since at least 2.2 and hasn't 
caused the slightest problem.  It bugs me to put cruft in the middle of 
otherwise tight loops.  Fortunately, the check is cheap and branch 
predictable.

BTW, your timings are domained by the function call and the range(5000) 
step.  To cleanly time for-loop overhead, use:

   python -m timeit "pass"
History
Date User Action Args
2008-08-29 20:34:43rhettingersetrecipients: + rhettinger, amaury.forgeotdarc, donmez, gideon
2008-08-29 20:34:42rhettingersetmessageid: <1220042082.95.0.716782617483.issue3720@psf.upfronthosting.co.za>
2008-08-29 20:34:42rhettingerlinkissue3720 messages
2008-08-29 20:34:41rhettingercreate