Paul Moore added the comment:

This is as documented - see 
https://docs.python.org/3.6/library/os.path.html#os.path.join (" If a component 
is an absolute path, all previous components are thrown away and joining 
continues from the absolute path component"). In this case, "/dir2" is an 
absolute path as it starts with a slash.

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30906>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to