[Python-ideas] PEP 428 - object-oriented filesystem paths
Georg Brandl
g.brandl at gmx.net
Sat Oct 6 16:47:06 CEST 2012
Am 06.10.2012 15:42, schrieb Antoine Pitrou:
> 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?
Not really. I'd prefer "base" or "namebase" though, to at least have a
tiny bit of difference.
Georg
More information about the Python-ideas
mailing list