On 04/07/2016 03:50 AM, Michel Desmoulin wrote:
Path objects don't have splitext() or and don't allow "string" / path.
Those are the ones bugging me the most.
--> Path('README.md')
--> p = Path('README.md') # PosixPath('README.md')
--> '/home/ethan' / p # PosixPath('/home/ethan/README.md')
--> p.splitext()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'PosixPath' object has no attribute 'splitext'
So, yeah, no .splitext()
--
~Ethan~
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com