python-eel/Eel

Question about internal implementation

Ouverte

#524 ouverte le 24 sept. 2021

 (0 commentaire) (0 réaction) (0 personne assignée)Python (570 forks)batch import
help wanted

Métriques du dépôt

Stars
 (5 980 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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.

Guide contributeur