A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-November/130206.html below:

[Python-Dev] Add transform() and untranform() methods

[Python-Dev] Add transform() and untranform() methods [Python-Dev] Add transform() and untranform() methodsWalter Dörwald walter at livinglogic.de
Fri Nov 15 08:09:47 CET 2013
Am 15.11.2013 um 00:42 schrieb Serhiy Storchaka <storchaka at gmail.com>:
> 
> 15.11.13 00:32, Victor Stinner написав(ла):
>> And add transform() and untransform() methods to bytes and str types.
>> In practice, it might be same codecs registry for all codecs just with
>> a new attribute.
> 
> If the transform() method will be added, I prefer to have only one transformation method and specify a direction by the transformation name ("bzip2"/"unbzip2").

+1

Some of the transformations might not be revertible (s.transform("lower")? ;))

And the transform function probably doesn't need any error handling machinery.

What about the stream/iterator/incremental parts of the codec API?

Servus,
   Walter

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4