[Python-ideas] Fwd: Add Unicode-aware str.reverse() function?

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Sep 8 19:08:19 EDT 2018


Stephan Houben wrote:
> To be honest, quite apart from the Unicode issue, I never had a need to 
> reverse a string in real code.

Yeah, seems to me it would only be useful if you were working
on some kind of word game such as a palindrome generator, or
if your string represents something other than natural language
text (in which case all the tricky unicode stuff probably
doesn't apply anyway).

For such a rare requirement, maybe a module on PyPI would be
a better solution than adding a string method.

-- 
Greg



More information about the Python-ideas mailing list