[Python-ideas] PEP 428 - object-oriented filesystem paths
Antoine Pitrou
solipsis at pitrou.net
Sat Oct 6 15:42:28 CEST 2012
On Sat, 06 Oct 2012 15:08:27 +0200
Georg Brandl <g.brandl at gmx.net> wrote:
> >
> > Well, "basename" is the name proposed for the "part before the
> > extension". "name" is the full filename.
> >
> > (so path.name == path.basename + path.ext)
>
> Is it? You said yourself it was easily confused with os.path.basename()'s result.
True, but since we already have the name attribute it stands reasonable
for basename to mean something else than name :-)
Do you have another suggestion?
Regards
Antoine.
--
Software development and contracting: http://pro.pitrou.net
More information about the Python-ideas
mailing list