[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:46:44 EDT 2017
Oleksandr Suvorov added the comment:
This change requested just because I find it inconsistent and passing
translation as key-value is much easier to read rather than two lists.
When translation table gets bigger than 10 pairs it gets annoying to match
in the head between from and to while reading it.
Could be marked as minor.
----------_________________________
> 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