Christopher Rowley
Christopher Rowley
We can avoid calling C functions in some common cases as an optimisation. e.g. Py_IncRef_Fast can just increment the refcount. e.g. Py_DecRef_Fast can just decrement the refcount provided it is...
Don't take a type, so it's just `pyconvert(::Py)`. Symmetric with `Py(x)` for conversion in the other direction. Will be simpler so define rules and can just run up the MRO...
Could be implemented with a simple change to getptr. Would make the unsafe API a lot safer in most cases. In fact, much of the unsafe API could become a...
Can probably make these into weak dependencies: - Serialization - Dates - Tables - Markdown?? - Pkg?? - REPL?? Also: - ~~make PyCall a weak dependency?~~ Done! - ~~remove Requires?~~...
so that PythonCall functions are easier to call from Python
... which is true if `pydel!(Py(x))` is safe (i.e. `Py(x)` definitely returns a new value). Or perhaps `!ispy(x)` is enough??
Since JLD2 serialises all pointers to NULL, serializing a `Py` always returns `PyNULL`. Add a package extension with a custom serialiser using `pickle`. Possibly have the deserialiser be opt-in, for...
Make symmetric with `Py`: - Operations with `Jl` all return `Jl`. - Arguments to methods of `Jl` convert args using `pyconvert(Any, x)`. - `Jl(x)` to convert Python `x` to Julia...