-
Notifications
You must be signed in to change notification settings - Fork 12
bindings: provide nicer "just use an fd/file" API #263
Copy link
Copy link
Open
Labels
api/handleRelated to the handle API.Related to the handle API.api/rootRelated to the Root API.Related to the Root API.bindings/goRelated to the Go bindings.Related to the Go bindings.bindings/pythonRelated to the Python bindings.Related to the Python bindings.impact/featureAn issue or PR that adds new distinct functionality.An issue or PR that adds new distinct functionality.
Milestone
Metadata
Metadata
Assignees
Labels
api/handleRelated to the handle API.Related to the handle API.api/rootRelated to the Root API.Related to the Root API.bindings/goRelated to the Go bindings.Related to the Go bindings.bindings/pythonRelated to the Python bindings.Related to the Python bindings.impact/featureAn issue or PR that adds new distinct functionality.An issue or PR that adds new distinct functionality.
At the moment, you need to convert any file objects into
Handlein both of our bindings, which (while providing nice type-safety) makes it a little ugly to do basic stuff withlibpathrs. Ideally we would have something akin toHandleRef/RootRefto avoid needing clone as well.