[docs] string reverse

Chris Kogelnik kogelnik at gmail.com
Wed Mar 21 19:25:01 CET 2012


There is no string reverse method in Python, but there is an easy way to 
do it using negative stepping in the extended slice syntax, ie. 
some_string[::-1].  Since this is somewhat non-intuitive, I think adding 
a note to the String Methods section under Built-in Types will spare a 
lot of people the time of implementing such a method.

More information about the docs mailing list