JuliaPy / JuliaPy/PythonCall.jl
Massively simplify pyconvert?
- Langage dominant
- Julia
- Étoiles
- 1.1k
- Forks
- 86
- Merge moyen
- 1 j 22 h
- PR mergées (30 j)
- 3
Description
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?
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- julia, python
- Domaine
- api
- Type d'issue
- Refactorisation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100