[New-bugs-announce] [issue20060] float() and int() TypeError messages differ

Mitchell Model report at bugs.python.org
Tue Dec 24 15:29:12 CET 2013


New submission from Mitchell Model:

[Sorry if ctypes is wrong component -- don't know which to use.]
Given an invalid type, int()'s TypeError message includes the name of the invalid type, but float()'s doesn't. (Nor does complex()'s.) All three should give analogous error messages. int()'s version, with the name of the offending type, seems better.

----------
components: ctypes
messages: 206892
nosy: MLModel
priority: normal
severity: normal
status: open
title: float() and int() TypeError messages differ
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20060>
_______________________________________


More information about the New-bugs-announce mailing list