[Python-Dev] [Python-checkins] cpython: Issue #14127: Add ns= parameter to utime, futimes, and lutimes.

Greg Ewing greg.ewing at canterbury.ac.nz
Fri May 4 08:22:25 CEST 2012


Larry Hastings wrote:
>> On 05/03/2012 10:07 PM, Benjamin Peterson wrote:
>>>>+ if (times && ns) {
>>>+ PyErr_Format(PyExc_RuntimeError,
>>>>>Why not a ValueError or TypeError?
>>>> Well it's certainly not a TypeError.

TypeError is not just for values of the wrong type,
it's also used for passing the wrong number of arguments
to a function and the like. So TypeError would be a
reasonable choice here, I think.
-- 
Greg


More information about the Python-Dev mailing list

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