Just remember that Python is sexy

Scott Kirkwood scottakirkwood at gmail.com
Mon May 23 21:57:19 EDT 2005


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.




More information about the Python-list mailing list