Message241777
| Author |
serhiy.storchaka |
| Recipients |
berker.peksag, eric.smith, ezio.melotti, mahmoud, martin.panter, r.david.murray, serhiy.storchaka, vstinner |
| Date |
2015年04月22日.06:44:08 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1429685048.21.0.213747437656.issue24019@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Please don't deprecate the encoding parameter in str. It has a use case. str constructor works with any bytes-like objects, even with these that don't have the decode method. It raises more appropriate TypeError instead of AttributeError, so often you don't need to wrap an error. |
|