JuliaPy / JuliaPy/PythonCall.jl
Massively simplify pyconvert?
- Lenguaje dominante
- Julia
- Estrellas
- 1.1k
- Forks
- 86
- Merge medio
- 1 d 22 h
- PR fusionados (30 d)
- 3
Descripción
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?
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
The issue names no files or tests; start by tracing the existing `pyconvert` and `Py(x)` entry points and their conversion rules. Resolve which proposed API—type-free `pyconvert(::Py)`, optional overrides, or the typed alias—is intended, then verify the chosen behavior across the MRO.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- julia, python
- Área
- api
- Tipo de issue
- Refactorización
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100