[Python-Dev] When should pathlib stop being provisional?
Ethan Furman
ethan at stoneleaf.us
Thu Apr 7 11:52:11 EDT 2016
More information about the Python-Dev mailing list
Thu Apr 7 11:52:11 EDT 2016
- Previous message (by thread): [Python-Dev] When should pathlib stop being provisional?
- Next message (by thread): [Python-Dev] When should pathlib stop being provisional?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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~
- Previous message (by thread): [Python-Dev] When should pathlib stop being provisional?
- Next message (by thread): [Python-Dev] When should pathlib stop being provisional?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list