finos / finos/rune-python-runtime
Native function registration enhancement
- Ngôn ngữ chính
- Python
- Star
- 0
- Fork
- 3
- Merge trung bình
- 5 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
## Feature Request
### Description of Problem:
Currently, the `rune_attempt_register_native_functions` will set or overwrite the native function implementation.
As the initialisation is lazy, it could be misleading if a developer attempts to specify own native function implementation and the n later due to an import the stub redefines the custom installed native function to the system default one.
### Potential Solutions:
`rune_attempt_register_native_functions` to check if the function is already registered and do not override if it is.
Hướng dẫn đóng góp
Hướng nghiên cứu
Start by locating rune_attempt_register_native_functions and tracing how lazy initialization and imports reach it. Check how an existing native registration is represented, then verify that a custom implementation remains unchanged after a later import; add or run focused coverage for both first registration and attempted re-registration.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- 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
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 62/100