Serhiy Storchaka <[email protected]> added the comment:
> Does anyone know a good way to make the exception render as: "must be str,
> not int" instead of "must be str, not <class 'int'>" ?
raise TypeError('must be str, not %s' % type(s).__name__)
----------
nosy: +storchaka
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue13532>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com