Author pitrou
Recipients eric.araujo, eric.smith, ncoghlan, pitrou, r.david.murray
Date 2010-09-29.09:57:38
SpamBayes Score 0.00164741
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...
History
Date User Action Args
2010-09-29 09:57:42pitrousetrecipients: + pitrou, ncoghlan, eric.smith, eric.araujo, r.david.murray
2010-09-29 09:57:41pitrousetmessageid: <1285754261.79.0.860478937831.issue9873@psf.upfronthosting.co.za>
2010-09-29 09:57:39pitroulinkissue9873 messages
2010-09-29 09:57:38pitroucreate