https://docs.python.org/3/library/pathlib.html
I’m creating this post mainly so that I don’t forget the name again.
You must log in or register to comment.
It’s also a really fun example of operator overloading.
__div__
is overloaded to allow this syntax.>>> p = PurePath('/etc') >>> p PurePosixPath('/etc') >>> p / 'init.d' / 'apache2' PurePosixPath('/etc/init.d/apache2')
deleted by creator