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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to