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