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 }}
io.TextIOWrapper.__init__ encoding="locale" support #4662
Feature
https://docs.python.org/3/library/io.html#io.TextIOWrapper
Python Documentation
documentation: https://docs.python.org/3/library/io.html#io.TextIOWrapper
source code: https://github.com/python/cpython/blob/4a3ea1fdd890e5e2ec26540dc3c958a52fba6556/Modules/_io/textio.c#L1120-L1130
Tips
TextIOWrapperArgsin RustPython source code to look forencodingparameter and init function._Py_GetLocaleEncodingObjectis same aslocale.getencoding