Message133016
> functools_cmp_to_key() doesn't
> check that the argument is a callable.
I don't think that is necessary; it will fail with a TypeError when the attempt is made to call it. This is the approach we take elsewhere (look at the built-in filter() function for example).
That being said, if you really think the early check is necessary, feel free to check it in. |
|
Date |
User |
Action |
Args |
2011-04-05 10:54:27 | rhettinger | set | recipients:
+ rhettinger, terry.reedy, ncoghlan, vstinner, eric.smith, stutzbach, gruszczy, daniel.urban, python-dev |
2011-04-05 10:54:27 | rhettinger | set | messageid: <1302000867.8.0.992110848986.issue11707@psf.upfronthosting.co.za> |
2011-04-05 10:54:26 | rhettinger | link | issue11707 messages |
2011-04-05 10:54:26 | rhettinger | create | |
|