[Python-Dev] [Python-checkins] cpython: Issue #14127: Add ns= parameter to utime, futimes, and lutimes. (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Fri May 4 08:22:25 CEST 2012
- Previous message: [Python-Dev] [Python-checkins] cpython: Issue #14127: Add ns= parameter to utime, futimes, and lutimes.
- Next message: [Python-Dev] [Python-checkins] cpython: Issue #14127: Add ns= parameter to utime, futimes, and lutimes.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Larry Hastings wrote:
On 05/03/2012 10:07 PM, Benjamin Peterson wrote:
+ if (times && ns) { + PyErrFormat(PyExcRuntimeError,
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
- Previous message: [Python-Dev] [Python-checkins] cpython: Issue #14127: Add ns= parameter to utime, futimes, and lutimes.
- Next message: [Python-Dev] [Python-checkins] cpython: Issue #14127: Add ns= parameter to utime, futimes, and lutimes.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]