[New-bugs-announce] [issue2907] ZeroDivisionError error message needs clarification

Chester report at bugs.python.org
Sun May 18 20:06:35 CEST 2008


New submission from Chester <wxpythoner at gmail.com>:

Please fix the ZeroDivisionError error message string literal to clarify
the error message:

from

if (y == 0) {
		PyErr_SetString(PyExc_ZeroDivisionError,
				"integer division or modulo by zero");
		return DIVMOD_ERROR;


to

if (y == 0) {
		PyErr_SetString(PyExc_ZeroDivisionError,
				"integer division by zero or modulo by zero");
		return DIVMOD_ERROR;


This code is located here:
http://svn.python.org/view/python/trunk/Objects/intobject.c?rev=62380&view=markup

----------
messages: 67033
nosy: chester
severity: normal
status: open
title: ZeroDivisionError error message needs clarification
versions: Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2907>
__________________________________


More information about the New-bugs-announce mailing list