Skip to content

Support with/as #36

@frafra

Description

@frafra

Valid code:

f = ctx.open(path, mask)
f.write(content)
f.close()

Proposal:

with ctx.open(path, mask) as f:
    f.write(content)

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