[Python-3000] Weird error message from bytes type

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Feb 27 01:37:37 CET 2007

Nick Coghlan wrote:
> For example, simply 
> replacing 'index' with 'integer' could lead to a different kind of 
> confusion:
>   TypeError: 'float' object cannot be interpreted as an integer

Maybe something like

   TypeError: 'float' object cannot be used as an integer in this context

Or maybe require the caller to pass in an error message
format, or at least have a version of the call which
allows that.


More information about the Python-3000 mailing list