Behaviour of os.path.join

Ben Bacarisse ben.usenet at bsb.me.uk
Wed May 27 14:22:57 EDT 2020


BlindAnagram <blindanagram at nowhere.com> writes:

> On 27/05/2020 16:53, Ben Bacarisse wrote:
<cut>
>> As it should.  Relying on a trailing \ having the right effect is
>> brittle to say the least.
>
> In my case less brittle than leaving it out.

Brittle does not mean broken.  I know you can fix it by making sure the
trailing \ is there.  It's that solution that is brittle.

> Its not my bug to fix - the semantics of what I send is very clear on
> any Windows system.

Then there is no bug.  You just constructed the path using a method that
did not behave as you expected.  That happens all the time.

-- 
Ben.


More information about the Python-list mailing list