Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: PyFilesystem 2.0 – A Python interface to filesystems of all kinds. Parent comment
>>> p = PurePath('/etc') >>> p PurePosixPath('/etc') >>> p / 'init.d' / 'apache2' PurePosixPath('/etc/init.d/apache2')
And yeah, this uses operator overload. However it does look quite nice.
There are no comments on this comment yet.
>>> p = PurePath('/etc') >>> p PurePosixPath('/etc') >>> p / 'init.d' / 'apache2' PurePosixPath('/etc/init.d/apache2')
And yeah, this uses operator overload. However it does look quite nice.