[Python-Dev] Pathlib enhancements - acceptable inputs and outputs for __fspath__ and os.fspath()
Ethan Furman
ethan at stoneleaf.us
Mon Apr 18 18:12:53 EDT 2016
More information about the Python-Dev mailing list
Mon Apr 18 18:12:53 EDT 2016
- Previous message (by thread): [Python-Dev] Pathlib enhancements - acceptable inputs and outputs for __fspath__ and os.fspath()
- Next message (by thread): [Python-Dev] Pathlib enhancements - acceptable inputs and outputs for __fspath__ and os.fspath()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 04/18/2016 02:58 PM, Koos Zevenhoven wrote: > It's a matter of documentation whether it "supports" bytes > or not. In fact, that function (assuming the name os.fspath) could now > even be documented to support this: > > patharg = os.fspath(patharg, output_types = (str, pathlib.PurePath)) # :-) While the os.fspath() function could be abused in such a way, we certainly wouldn't advertise it. (Leave that to StackOverflow. ;) -- ~Ethan~
- Previous message (by thread): [Python-Dev] Pathlib enhancements - acceptable inputs and outputs for __fspath__ and os.fspath()
- Next message (by thread): [Python-Dev] Pathlib enhancements - acceptable inputs and outputs for __fspath__ and os.fspath()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list