invert or reverse a string... warning this is a rant
Istvan Albert
istvan.albert at gmail.com
Fri Oct 20 12:26:35 EDT 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.
i.
More information about the Python-list
mailing list