[Python-Dev] Is adding support for os.PathLike an enhancement or bugfix? (original) (raw)
Brett Cannon brett at python.org
Thu May 4 13:33:03 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 ]
Thanks for the feedback, everyone. I'll just consider it an enhancement then.
On Wed, 3 May 2017 at 15:07 Terry Reedy <tjreedy at udel.edu> wrote:
On 5/3/2017 2:15 PM, Brett Cannon wrote: > 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.
On the face of it, that particular issue looks like an enhancement that should have gone into 3.6 (if ever), but did not. I notice that https://www.python.org/dev/peps/pep-0519/#implementation did not include "Update shutil", so it was not done, at least not completely. Was shutil updated at all?
Probably not explicitly. A lot of support just fell through thanks to updating os and os.path to support path-like objects.
Is unpackarchive the only shutil function not updated?
Not sure. I opened https://bugs.python.org/issue30235 to track finding out.
-Brett
If so, I could see the omission as a bug.
If the patch for 30218 were applied in 3.6, would the doc https://docs.python.org/3/library/shutil.html#shutil.unpackarchive need to be changed, with a note "Added in 3.6.2: filename can be any pathlike object"? If so, it is an enhancement.
-- Terry Jan Reedy
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/brett%40python.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20170504/6fced0bf/attachment.html>
- 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 ]