Spyke
lemmy.ca

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')    
15

I subconsciously replace os.path with pathlib whenever touching any module for a refactor.

4

You reached the end

YSK: there is a library called pathlib with different methods for accessing files which you might like since they do not require a context manager | Spyke