homepage

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 larry
Recipients larry, martin.panter, mdk, rhettinger, serhiy.storchaka, skrah, vstinner
Date 2016年12月11日.00:32:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1481416358.18.0.625319887506.issue28754@psf.upfronthosting.co.za>
In-reply-to
Content
We don't *have* to use a converter function, no. But consider: someone somewhere will have to convert a PyObject * into a Py_ssize_t, also accepting None. Doing it in a converter function means we can easily share the code with bisect_right, which should presumably behave the same way. It also keeps all the argument parsing logic in the Argument Clinic domain instead of having some in AC and some in the implementation.
Is there some drawback to using a converter function?
History
Date User Action Args
2016年12月11日 00:32:38larrysetrecipients: + larry, rhettinger, vstinner, skrah, martin.panter, serhiy.storchaka, mdk
2016年12月11日 00:32:38larrysetmessageid: <1481416358.18.0.625319887506.issue28754@psf.upfronthosting.co.za>
2016年12月11日 00:32:38larrylinkissue28754 messages
2016年12月11日 00:32:38larrycreate

AltStyle によって変換されたページ (->オリジナル) /