JuliaPy / JuliaPy/PythonCall.jl

Massively simplify pyconvert?

オープン
#417 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Julia
スター
1.1k
フォーク
86
平均マージ
1日 22時間
マージ済み PR(30日)
3

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
julia, python
領域
api
issue の種類
リファクタリング
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。