Skip to content

FileWrapper should be iterable #3396

@jaroslavpachola

Description

@jaroslavpachola

If I understand the WSGI specification (PEP 3333) the file wrapper callable should return an iterable object - see https://peps.python.org/pep-3333/#optional-platform-specific-file-handling . I see GUnicorn can handle file wrapper another way (respiter discrimination), but when trying to use a WSGI app that depends on the iterable interface, the app breaks. Can we please add __iter__() to FileWrapper and fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions