Skip to content

ENH: Safer stream handling for Python 2 #5020

Closed
@alefnula

Description

@alefnula

The lengthy conversation that started this issue can be found in the pull request #4955.

The basic idea is to create a safe stream wrapper in the PythonParser.__init__ function that will always emit unicode strings instead of the current implementation that in some cases return str and in other return unicode depending on the thing that is passed as the input. The same thing should done for the CParserWrapper.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementIO DataIO issues that don't fit into a more specific labelUnicodeUnicode strings

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions