Skip to content

Support file objects in Python API for dump/load #609

Closed

Description

@jeromekelleher

#599 added support for file objects in the C API. We want to also support this in the Python API.

Semantics should follow what we've done in kastore, where the Python C interface is adapted to use a fileno. This would mean that we should be able to work with any kind of fileobj other than a BytesIO.

There's a choice to be made in whether we rename the parameter from path to file (we could keep path as a deprecated alias keyword only arg).

Activity

  1. added this to the Python 0.3.1 milestone on May 12, 2020
  2. added
    Python API
    on Sep 29, 2020
  3. jeromekelleher commented on Sep 29, 2020

    @jeromekelleher
    MemberAuthor

    Dupe of #657

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Python API

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions