Skip to content

io.TextIOWrapper.__init__ encoding="locale" support #4662

@youknowone

Description

@youknowone

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

  • search for TextIOWrapperArgs in RustPython source code to look for encoding parameter and init function.
  • _Py_GetLocaleEncodingObject is same as locale.getencoding

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions