Skip to content

api: let open() return the file object (like builtin open) #3449

@jorgeorpinel

Description

@jorgeorpinel

Sort of extracted from #3426 (review)

Should dvc.api.open() behave more like builtin open() in that it just returns the file object? (Probably an explicit close() would be needed though). But keeping also the existing possibility of being used as a context manager (with keyboard)?

CC @shcheklein please add any further details if needed, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A: apiRelated to the dvc.apidiscussionrequires active participation to reach a conclusionenhancementEnhances DVCp2-mediumMedium priority, should be done, but less important

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions