JuliaPy / JuliaPy/PythonCall.jl
Improve the `pyconvert` rule dispatch system
- Ngôn ngữ chính
- Julia
- Star
- 1.1k
- Fork
- 86
- Merge trung bình
- 1 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 3
Mô tả
**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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- julia, python
- Lĩnh vực
- backend
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100