[Python-ideas] More user-friendly version for string.translate()

Paul Moore p.f.moore at gmail.com
Mon Oct 24 14:32:09 EDT 2016


On 24 October 2016 at 18:39, Mikhail V <mikhailwas at gmail.com> wrote:
> I would be happy to see a somewhat more general and user friendly
> version of string.translate function.
> It could work this way:
> string.newtranslate(file_with_table, Drop=True, Dec=True)

Using a text file seems very odd. But regardless, this could *easily*
be published on PyPI, and then if it gained enough users be proposed
for the stdlib. I don't think there's anything like sufficient value
to warrant "fast-tracking" something like this direct to the stdlib.
And real-world use via PyPI would very quickly establish whether the
unusual "pass a file with a translation table in it" design was
acceptable to users.

Paul


More information about the Python-ideas mailing list