[issue31594] Make bytes and bytearray maketrans accept dictionaries as first argument as it's done in str
Oleksandr Suvorov
report at bugs.python.org
Tue Sep 26 12:25:33 EDT 2017
Oleksandr Suvorov added the comment:
str.maketrans in python3 is able to accept just one argument which is a
mapping of translations.
While bytearray and bytes are still using only old way where you should
pass two iterables from and to.
static str.maketrans(x [,y [,z]])
static bytes.maketrans(from, to)
static bytearray.maketrans(from, to)
On Tue, Sep 26, 2017 at 6:12 PM, Serhiy Storchaka <report at bugs.python.org>
wrote:
>
> New submission from Serhiy Storchaka:
>
> Could you please provide more information? What the problem you want to
> solve?
>
> ----------
> nosy: +serhiy.storchaka
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <https://bugs.python.org/issue31594>
> _______________________________________
>
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31594>
_______________________________________
More information about the Python-bugs-list
mailing list