Message203897
| Author |
vstinner |
| Recipients |
doerwalter, ezio.melotti, lemburg, ncoghlan, python-dev, serhiy.storchaka, vstinner |
| Date |
2013年11月22日.21:57:41 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1385157461.31.0.387486239809.issue19619@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
With blacklisted transform codecs, I'm fine with the idea of restoring codecs aliases for transform codecs in Python 3.4. Go ahead Nick.
--
For Python 3.5, a better solution should be found to declare transform codecs.
And I had like to also add transform()/untransform() methods on bytes and str types. So you would have 4 API:
* Unicode text codecs: str.encode/str.decode, str=>bytes
* bytes transform codecs: bytes.transform/untransform, bytes-like object=>bytes
* Unicode transform codecs: str.transform/untransform, str=>str
* all codecs: codecs.encode/codecs.decode, something=>something else
But only few developers (only me?) are interested by transform/untransform, so codecs.encode/codecs.decode might be enough. |
|