Behaviour of os.path.join

BlindAnagram blindanagram at nowhere.com
Tue May 26 11:52:10 EDT 2020


On 26/05/2020 16:25, Stefan Ram wrote:
> BlindAnagram <blindanagram at nowhere.com> writes:
>> The documentation says that an absolute path in the parameter list for
>> join will discard all previous parameters but '\\' is not an absoute path!
> 
>   The source code for "join" in "ntpath.py" does not seem to
>   bother to call "is_absolute". Instead it contains (simplified):
> 
> seps = '\\/'
> if p_path and p_path[0] in seps:
>     # Second path is absolute

Thanks, that seems to confirm this as a bug.




More information about the Python-list mailing list