Message116330
Terry,
I'm attaching a patch for 2.7, however it's more proof-of-concept than final, because I have a few comments. The patch generally implements your documentation suggestion without the `import *` warning and without adding the final example. The latter for a couple of reasons:
1) My tests show that passing the callable instead of the string 'test()' actually takes longer to run.
2) When the callable is passed, the setup of importing 'test' from '__main__' is necessary, because the timed code doesn't have to lookup the 'test' symbol. If you want to leave that example in, the setup string can be ditched.
Let me know your thoughts and I will update the patch. |
|
Date |
User |
Action |
Args |
2010-09-13 17:23:52 | eli.bendersky | set | recipients:
+ eli.bendersky, fdrake, rhettinger, terry.reedy, rurpy, LambertDW, docs@python |
2010-09-13 17:23:51 | eli.bendersky | set | messageid: <1284398631.92.0.455482343294.issue1397474@psf.upfronthosting.co.za> |
2010-09-13 17:23:50 | eli.bendersky | link | issue1397474 messages |
2010-09-13 17:23:50 | eli.bendersky | create | |
|