<div dir="ltr"><div>Thanks for your replies.</div><div><br></div><div>After reading them,, although I seem to have a brain freeze at the moment and <br></div><div>cannot think of an algorithm; I think it plausible, just in the ASCII world for <br></div><div>someone to want to iterate through characters in a string in reverse order - <br></div><div>maybe to zip with another existing iterable that would otherwise need to be <br></div><div>reversed? If it shifted from ASCII to unicode then letters with their combining</div><div>characters would have to be reversed as a single character; but also iterated <br></div><div>over as a single unicode "character" - another problem!</div><div><br></div><div>I thought so, I scratch the surface of unicode, and find a deep chasm awaits.<br></div><br>On Saturday, 8 September 2018 12:33:07 UTC+1, Paddy3118  wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div>I wrote a <a href="http://paddy3118.blogspot.com/2009/07/case-of-disappearing-over-bar.html" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fpaddy3118.blogspot.com%2F2009%2F07%2Fcase-of-disappearing-over-bar.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFZL-B3cg0uWgTMg7d7-npo_zqbjg';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fpaddy3118.blogspot.com%2F2009%2F07%2Fcase-of-disappearing-over-bar.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFZL-B3cg0uWgTMg7d7-npo_zqbjg';return true;">blog post </a>nearly a decade ago on extending a Rosetta Code task <a href="http://rosettacode.org/wiki/Reverse_a_string" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Frosettacode.org%2Fwiki%2FReverse_a_string\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFOwUd7qYtIvGB1tN5j02tRYpskdQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Frosettacode.org%2Fwiki%2FReverse_a_string\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFOwUd7qYtIvGB1tN5j02tRYpskdQ';return true;">example </a>to handle the correct reversal of strings with combining characters.</div><div>On checking my blog statistics today I found that it still had a readership and revisited <a href="http://rosettacode.org/wiki/Reverse_a_string#Python:_Unicode_reversal" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Frosettacode.org%2Fwiki%2FReverse_a_string%23Python%3A_Unicode_reversal\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH2O-AiaVvqrIh7cRIQwjjAd45pIQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Frosettacode.org%2Fwiki%2FReverse_a_string%23Python%3A_Unicode_reversal\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH2O-AiaVvqrIh7cRIQwjjAd45pIQ';return true;">the code</a> (and updated it to Python3.6)..</div><div><br></div><div>I found that amongst the nearly 200 languages that complete the RC task,there were a smattering of languages that correctly handled reversing strings having Unicode combining characters,</div><div>including <a href="http://rosettacode.org/wiki/Reverse_a_string#Perl_6" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Frosettacode.org%2Fwiki%2FReverse_a_string%23Perl_6\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH7iD05wnVbY2QZUf-e23wz5fejTg';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Frosettacode.org%2Fwiki%2FReverse_a_string%23Perl_6\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH7iD05wnVbY2QZUf-e23wz5fejTg';return true;">Perl 6</a> which uses flip.</div><div><br></div><div>I would like to propose that Python add a Unicode-aware <b>str.reverse </b>method. The problem is, I'm a Brit, who only speaks English and only very rarely dips into Unicode.<i> I don't know how useful this would be!</i></div><div><i><br></i></div><div>Cheers, Paddy.</div><div><br></div><div><br></div><div><br></div></div></blockquote></div>