Message 164286 - Python tracker
Message164286
| Author | serhiy.storchaka |
|---|---|
| Recipients | Ramchandra Apte, loewis, orsenthil, roger.serwy, serhiy.storchaka, terry.reedy |
| Date | 2012-06-28.17:57:24 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1340906245.47.0.866252997569.issue13532@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
> 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__) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2012-06-28 17:57:25 | serhiy.storchaka | set | recipients: + serhiy.storchaka, loewis, terry.reedy, orsenthil, roger.serwy, Ramchandra Apte |
| 2012-06-28 17:57:25 | serhiy.storchaka | set | messageid: <1340906245.47.0.866252997569.issue13532@psf.upfronthosting.co.za> |
| 2012-06-28 17:57:24 | serhiy.storchaka | link | issue13532 messages |
| 2012-06-28 17:57:24 | serhiy.storchaka | create | |