[Python-Dev] [Python-checkins] python/dist/src/Objects abstract.c,2.93.6.7,2.93.6.8
Guido van Rossum
guido@python.org
Mon, 16 Dec 2002 11:22:13 -0500
> This backport checkin (Oct 5 2002) changed the exception text between
> 2.2.1:
>
> >>> int(None)
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> TypeError: object can't be converted to int
>
> and 2.2.2 (last line):
>
> >>> int(None)
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> TypeError: int() argument must be a string or a number
>
> Should this change have been backported to 2.2.2 from the 2.3
> codebase?
Clarifications of error messages is acceptable for bugfix releases.
Some error messages need more clarification than others, and you can
argue about this particular one, but I don't think you can rely on all
error messages remaining the same within bugfix releases.
--Guido van Rossum (home page: http://www.python.org/~guido/)