python-eel/Eel

Question about internal implementation

Open

#524 创建于 2021年9月24日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Python (570 fork)batch import
help wanted

仓库指标

Star
 (5,980 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Hi there! I have a question about the code here. Why is it necessary to find all the exposed JS functions before running? The Python side could send a message to the JS side asking to call a function with a specific name. Then, the JS side would check if such function exists, and if not, return an error. Thus, the current implementation seems overcomplicated to me.

Have you not considered this approach, or have you rejected it for some reason? Thanks.

贡献者指南