Skip to content

Missing .name and .mode attributes #69

@mjpieters

Description

@mjpieters

The FileIO attributes .name and .mode are missing from the wrappers.

So this works:

with open(filename) as f:
    print(f.name, f.mode)

This doesn't, resulting in attribute errors.

async with aiofiles.open(filename) as f:
    print(f.name, f.mode)

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