Author Ramchandra Apte
Recipients Ramchandra Apte, icedream91
Date 2013-07-21.09:59:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1374400783.19.0.439423152295.issue18518@psf.upfronthosting.co.za>
In-reply-to
Content
Well, not sure if this is worth fixing, I think this is because timeit runs a modified version of the code using exec(), with the actual code to be timed within a function. (timeit runs something like this with exec():

def actual_code():
   #The real code
   for i in range(10): return -1
<some other code>
actual_code()
History
Date User Action Args
2013-07-21 09:59:43Ramchandra Aptesetrecipients: + Ramchandra Apte, icedream91
2013-07-21 09:59:43Ramchandra Aptesetmessageid: <1374400783.19.0.439423152295.issue18518@psf.upfronthosting.co.za>
2013-07-21 09:59:43Ramchandra Aptelinkissue18518 messages
2013-07-21 09:59:42Ramchandra Aptecreate