[Python-Dev] os.path.dirname misleading?

Skip Montanaro skip@pobox.com
Wed, 12 Mar 2003 21:38:43 -0600

    Greg> Kevin Altis <altis@semi-retired.com>:
    >> Pity the functions aren't named os.path.head and os.path.tail.

    Greg> It wouldn't be entirely clear what they mean even then -- "head"
    Greg> might mean just the first pathname component.
    Greg> Maybe they should be called
    Greg> "all_except_the_last_pathname_component" and
    Greg> "last_pathname_component"?

I know, how about car and cdr? ;-)