[issue40589] Missing path-like versionchanged in shutil.rmtree
New submission from Ville Skyttä <ville.skytta@iki.fi>: shutil.rmtree takes a path-like object starting from 3.6 (due to internal use of os.lstat which does that too). ---------- assignee: docs@python components: Documentation messages: 368613 nosy: docs@python, scop priority: normal severity: normal status: open title: Missing path-like versionchanged in shutil.rmtree _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40589> _______________________________________
Change by Ville Skyttä <ville.skytta@iki.fi>: ---------- keywords: +patch pull_requests: +19341 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20032 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40589> _______________________________________
Serhiy Storchaka <storchaka+cpython@gmail.com> added the comment: Thank you for your PR Ville, but I think this change cannot be accept. There was a ton of functions which became supporting path-like objects in 3.6. We deliberately did not add versionchanged directives to them because it would just add a noise. shutil.rmtree() is not special. If we decide to add versionchanged for it, we would need to add versionchanged to many tens or hundreds of other functions and methods. ---------- nosy: +serhiy.storchaka resolution: -> rejected stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40589> _______________________________________
participants (2)
-
Serhiy Storchaka -
Ville Skyttä