JuliaPy / JuliaPy/PythonCall.jl

Improve the `pyconvert` rule dispatch system

未关闭
#366 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Julia
星标
1.1k
派生
86
平均合并
1 天 22 小时
30 天内合并 PR
3

描述

**Is your feature request related to a problem? Please describe.**
I add a rule with a bug in the function, try a conversion, see the bug, and define a new rule with a different (hopefully less buggy) function. However, when I try the conversion again, I get the old function :cry:.

**Describe the solution you'd like**
When tied for priority in all other respects, I'd like to get the most recently added conversion, not the least recently added conversion.

**Describe alternatives you've considered**
Removing rules is a more robust approach, and works even if I added a new rule with an erroneously high priority, but that can be orthogonal to this feature request.

**Additional context**
I'm happy to make a PR if this is a change we want to make. It's technically breaking, but only barely, and IIUC we are okay with more breaking releases at this time.

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start at the pyconvert rule registration and dispatch entry point, then reproduce two tied-priority rules where the newer rule currently loses. Trace how rules are ordered and identify the existing dispatch tests, if present. Done means tied rules consistently select the most recently added conversion without changing other priority behavior.

由索引模型根据 Issue 内容生成。

评估

技术栈
julia, python
领域
backend
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。