[Python-Dev] Is adding support for os.PathLike an enhancement or bugfix?
Victor Stinner
victor.stinner at gmail.com
Wed May 3 18:25:55 EDT 2017
More information about the Python-Dev mailing list
Wed May 3 18:25:55 EDT 2017
- Previous message (by thread): [Python-Dev] Is adding support for os.PathLike an enhancement or bugfix?
- Next message (by thread): [Python-Dev] Is adding support for os.PathLike an enhancement or bugfix?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
If you start to backport support for the fspath protocol, be prepared to have to backport it *many* places. I expect that slowly in the near future, many functions will be patched to support the fspath protocol. I suggest to only do that in master. It's not that hard to cast manually to a string: it's just str(path), no? Victor 2017-05-03 20:15 GMT+02:00 Brett Cannon <brett at python.org>: > My allergies have hit me hard so I'm not thinking at full capacity, but did > we ever decide if supporting os.PathLike in the stdlib was viewed as an > enhancement or bugfix? Specifically I'm thinking of > https://bugs.python.org/issue30218 for adding support to > shutil.unpack_archive() and whether it should be backported to 3.6. > > _______________________________________________ > Python-Dev mailing list > Python-Dev at python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/victor.stinner%40gmail.com >
- Previous message (by thread): [Python-Dev] Is adding support for os.PathLike an enhancement or bugfix?
- Next message (by thread): [Python-Dev] Is adding support for os.PathLike an enhancement or bugfix?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list