]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-152638: Deprecate tkinter.filedialog.askopenfiles() (GH-152647)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 11 Jul 2026 05:53:02 +0000 (08:53 +0300)
committerGitHub <noreply@github.com>
Sat, 11 Jul 2026 05:53:02 +0000 (05:53 +0000)
commitf212f219a508ff9c3601d7af39eca926462a9b80
treee5a5066a39a644cb57ac92b4c63270da15c065bb
parentb39dfe266e0d70cc44294d9edd2f61fbc4b28e21
gh-152638: Deprecate tkinter.filedialog.askopenfiles() (GH-152647)

Opening several files at once is error-prone, and the returned list
cannot be used in a "with" statement.  Iterate over the names returned
by askopenfilenames() and open them one by one instead.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Doc/deprecations/pending-removal-in-3.19.rst
Doc/library/dialog.rst
Doc/whatsnew/3.16.rst
Lib/test/test_tkinter/test_filedialog.py
Lib/tkinter/filedialog.py
Misc/NEWS.d/next/Library/2026-06-29-21-59-08.gh-issue-152638.92dpzo.rst [new file with mode: 0644]