This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients daniel.urban, eric.smith, gruszczy, ncoghlan, python-dev, rhettinger, stutzbach, terry.reedy, vstinner
Date 2011-04-05.10:54:26
SpamBayes Score 0.0067706374
Marked as misclassified No
Message-id <1302000867.8.0.992110848986.issue11707@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2011-04-05 10:54:27rhettingersetrecipients: + rhettinger, terry.reedy, ncoghlan, vstinner, eric.smith, stutzbach, gruszczy, daniel.urban, python-dev
2011-04-05 10:54:27rhettingersetmessageid: <1302000867.8.0.992110848986.issue11707@psf.upfronthosting.co.za>
2011-04-05 10:54:26rhettingerlinkissue11707 messages
2011-04-05 10:54:26rhettingercreate