You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
open() documentation still says default encoding is locale-dependent in 3.15 #148603
Activity
vstinner commentedon Apr 15, 2026
open()now uses theUTF-8encoding by default, but it still uses the locale encoding if the UTF-8 Mode is disabled:dagangtj commentedon Apr 15, 2026
doc: Update open() default encoding docs for Python 3.15
warsaw commentedon Sep 11, 2026
@hugovk should this be a 3.15 blocker?
hugovk commentedon Sep 12, 2026
Yep, label added.
gh-148603: Update docs now UTF-8 is default (PEP 686) (#157372)
[3.15] gh-148603: Update docs now UTF-8 is default (PEP 686) (GH-157372…
Very-cool-guy commentedon Nov 20, 2026
uh it seems like help(open) on python 3.15.2 still talks about locale.getencoding?
vstinner commentedon Nov 20, 2026
Alright, io.open() docstring wasn't updated yet. It's defined at Modules/_io/_iomodule.c: do you want to propose a PR to update it?
pythongh-148603: Update docstrings now UTF-8 is default