Message117588
> 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... |
|
| Date |
User |
Action |
Args |
| 2010-09-29 09:57:42 | pitrou | set | recipients:
+ pitrou, ncoghlan, eric.smith, eric.araujo, r.david.murray |
| 2010-09-29 09:57:41 | pitrou | set | messageid: <[email protected]> |
| 2010-09-29 09:57:39 | pitrou | link | issue9873 messages |
| 2010-09-29 09:57:38 | pitrou | create | |
|