A suggestion for a possible Python module
Thomas Wouters
thomas at xs4all.net
Sat Mar 8 13:50:23 EST 2003
On Sat, Mar 08, 2003 at 06:26:25PM +0000, Mark VandeWettering wrote:
> > I have noticed that there is one thing that everyone wishes to do in Python
> > ... reverse a string.
> Really? Whatever for?
> Honestly, what commonly programmed task requires string reversal? I can't
> ever remember doing it even once during 20+ years of programming.
Well, if you want to, say, index a list of email addresses or hostnames with
btree, and you want to be able to efficiently match domain-parts, reversing
the string is useful. If I were doing such a thing, I would do it all the
time. :)
--
Thomas Wouters <thomas at xs4all.net>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!
More information about the Python-list
mailing list