Replies: 1 comment
-
Breaking down the discussion into issues:
We also got learnings from:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ET is updating the pybinding functions by migrating from
pybinding.module
intoextension.module
. BundledProgram has become a blocker for migration because:BundledProgram
APIs take method module as inputExtension.module
does not expose method class to outsideThis document focuses on solving the issue while having long-term benefits.
Targets:
We want to make some updates to replace
pybinding.module
withextension.module
in pybinding functions and continue with the following requirements:extension.module
Proposals:
Create a new class called BundledModule, which extends the current Module class, specific for bundled program stuff. This way we wrap all method-related under
BundledModule
and not expose them:Furthermore, in this scenario, we need to touch the method variable in the BundledModule, but the method variable is a private member of the Module class, so we should introduce an extra get function in Module’s protected scope to retrieve method module from method name while not exposing it to outside:
In this way, we can make our final pybinding neat and concise:
@cccclai @tarun292 @byjlw
Beta Was this translation helpful? Give feedback.
All reactions