[Python-Dev] Is adding support for os.PathLike an enhancement or bugfix? (original) (raw)

Victor Stinner victor.stinner at gmail.com
Wed May 3 18:25:55 EDT 2017


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.unpackarchive() 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



More information about the Python-Dev mailing list