Just remember that Python is sexy

Fuzzyman fuzzyman at gmail.com
Tue May 24 04:05:36 EDT 2005


Scott Kirkwood wrote:
> I often can't remember that to remove spaces from a string whether
it's
> strip() or trim(), and when finding patterns with the re library
> whether it's find() or search() and when iterating over key, values
of
> a dictionary whether it's items() or entries().
> But then I remember that Python is "sexy".
> It is sexier to strip() than to trim().
> You do a strip search() not a find() search.
> And you remove items() of clothing and not entries() of clothing.

Thats very silly.....

Regards,

Fuzzy
http://www.voidspace.org.uk/python




More information about the Python-list mailing list