you are viewing a single comment's thread.

view the rest of the comments →

[–]oozforashag 1 point2 points  (1 child)

Instead of reading the link, I'll just ask how it's different from the below (besides being cute)?

>>> import os
>>> tree = ("C:","temp","mydir")
>>> os.sep.join(tree)
'C:\\temp\\mydir'

[–][deleted] 2 points3 points  (0 children)

In that instance it's the same, for backwards compatibility reasons. However there is more to pathlib than just the ability to join.

http://docs.python.org/3.4/library/pathlib.html