[Python-Dev] File system path PEP, part 2 (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Fri May 13 07:56:34 EDT 2016
- Previous message (by thread): [Python-Dev] File system path PEP, part 2
- Next message (by thread): [Python-Dev] File system path PEP, part 2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 13 May 2016 at 21:00, Steven D'Aprano <steve at pearwood.info> wrote:
On Thu, May 12, 2016 at 08:53:12PM +0000, Brett Cannon wrote:
Second draft that takes Guido's comments into consideration. The biggest change is os.fspath() now returns whatever path.fspath() returns instead of restricting it to only str. Counter suggestion: - fspath() method may return either bytes or str (no change from the PEP as it stands now); - but os.fspath() will only return str; - and os.fspathb() will only return bytes;
We don't have any use cases for a bytes-only API - only str-or-bytes (in the polymorphic low level functions) and str-only (in newer high level APIs like pathlib).
Cheers, Nick.
-- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
- Previous message (by thread): [Python-Dev] File system path PEP, part 2
- Next message (by thread): [Python-Dev] File system path PEP, part 2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]