At 11:32 AM 8/6/2003, David Abrahams wrote:
>
>I think this is a badly-chosen name. Both POSIX and Python have a
>basename function which does roughly what our leaf() function does.
>
> ...
>
>I don't think we should use creative naming in cases like this one.
The naming scheme based the root/bran
I think this is a badly-chosen name. Both POSIX and Python have a
basename function which does roughly what our leaf() function does.
Python:
>>> import os.path
>>> help(os.path.basename)
Help on function basename:
basename(p)
Returns the final component of a pathname