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
Swap keyword arguments in open() to make encoding easier to use #63499
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2013-10-19.17:08:57.196>created_at=<Date2013-10-19.17:06:22.660>labels= ['interpreter-core', 'type-feature']
title='Swap keyword arguments in open() to make encoding easier to use'updated_at=<Date2013-10-19.17:08:57.194>user='https://github.com/py-user'
Activity
py-user commentedon Oct 19, 2013
It would be handy to use
open('file.txt', 'r', 'utf-8')
instead of
open('file.txt', 'r', encoding='utf-8')
ezio-melotti commentedon Oct 19, 2013
That would be backward incompatible.