JuliaPy / JuliaPy/PythonCall.jl

To do: in-place API

Open
#163 6 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Julia
Stars
1.1k
Forks
86
Avg merge
1d 22h
Merged PRs (30d)
3

Description

Make in-place versions of all the API functions, like:
```julia
pyimport!(ans, "sys")
pyadd!(ans, x, y)
pygetattr!(ans, x, "foo")
```
These replace the pointer in `ans::Py` with the result of the computation, instead of allocating a new `Py` each time. This will allow writing super-fast non-allocating code where needed.

You'd use these by pre-allocating places to store the results with `pynew`, which can optionally by freed with `pydel!`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.