Message151720
| Author |
r.david.murray |
| Recipients |
docs@python, eric.smith, py.user, r.david.murray, terry.reedy |
| Date |
2012年01月21日.04:48:36 |
| SpamBayes Score |
0.012923993 |
| Marked as misclassified |
No |
| Message-id |
<1327121317.63.0.157154868056.issue13790@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Oh, I see. Yes, that is a problem.
object.__format__ knows the type of the object it was called on, right? Couldn't it catch the error and re-raise it with the correct type? (If the type isn't str, of course, we don't want to get into an infinite recursion.) |
|