[Python-Dev] proposed os.fspath() change
Koos Zevenhoven
k7hoven at gmail.com
Wed Jun 15 15:10:11 EDT 2016
More information about the Python-Dev mailing list
Wed Jun 15 15:10:11 EDT 2016
- Previous message (by thread): [Python-Dev] proposed os.fspath() change
- Next message (by thread): [Python-Dev] proposed os.fspath() change
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>> if isinstance(filename, os.PathLike): By the way, regarding the line of code above, is there a convention regarding whether implementing some protocol/interface requires registering with (or inheriting from) the appropriate ABC for it to work in all situations. IOW, in this case, is it sufficient to implement __fspath__ to make your type pathlike? Is there a conscious trend towards requiring the ABC? -- Koos
- Previous message (by thread): [Python-Dev] proposed os.fspath() change
- Next message (by thread): [Python-Dev] proposed os.fspath() change
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list