invert or reverse a string... warning this is a rant

Carl Banks pavlovevidence at gmail.com
Fri Oct 20 11:27:17 EDT 2006


Demel, Jeff wrote:
> I've been programming professionally for over 10 years, and have never
> once needed to reverse a string.  Maybe it's a lack of imagination on my
> part, but I can't think of a single instance this might be necessary.

Say you're using a function from a third-party library that finds the
first character in a string that meets some requirement.  You need to
find the last such character.


Carl




More information about the Python-list mailing list