Message117588
| Author |
pitrou |
| Recipients |
eric.araujo, eric.smith, ncoghlan, pitrou, r.david.murray |
| Date |
2010年09月29日.09:57:38 |
| SpamBayes Score |
0.0016474145 |
| Marked as misclassified |
No |
| Message-id |
<1285754261.79.0.860478937831.issue9873@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> A possible duck-typing approach here would be to replace the
> "instance(x, str)" tests with "hasattr(x, 'encode')" checks instead.
Looks more ugly than useful to me. People wanting to emulate str had better subclass it anyway... |
|