invert or reverse a string... warning this is a rant
istvan.albert at gmail.com
Fri Oct 20 18:26:35 CEST 2006
Carl Banks wrote:
> 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.
You seem to imply that invoking a function on a reversed input is
somehow a generic solution to the problem (finding first vs finding
last) that you describe above above.
That would be the exception rather than the rule.
More information about the Python-list