JuliaPy / JuliaPy/PythonCall.jl
Massively simplify pyconvert?
Aperta
- Lingua principale
- Julia
- Stelle
- 1.1k
- Fork
- 86
- Merge medio
- 1g 22h
- PR unite (30g)
- 3
Descrizione
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 to apply them.
Could also have a `override` argument to possibly provide custom conversions (and same for `Py`).
Could additionally support `pyconvert(T, x)` as an alias for `convert(T, pyconvert(x))::T`. Or do something slightly snazzier which lets us skip over rules that cannot apply?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.