Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dylink.r2py is not importing attributes starting with underscore in case the of dy_import_module #153

Open
us341 opened this issue Nov 7, 2014 · 0 comments

Comments

@us341
Copy link

us341 commented Nov 7, 2014

Following error gets raised when one try to get attribute starting with underscore using dy_link_module:
Exception (with type 'exceptions.AttributeError'): ImportedModule instance has no attribute '_foo'

e.g. inside a library with name lib1.r2py----
def _foo():
log("its working")

lib3.r2py tries to get _foo ----
lib1 = dy_import_module("lib1.r2py")
if callfunc=='initialize':
lib1._foo()

but works fine with dy_import_module_symbols
e.g. in lib2.r2py----
dy_import_module_symbols("lib1.r2py")

if callfunc=='initialize':
_foo();

this works fine----
output:
its working

inside dylink.r2py it needs to handle these two types of import differently. It should not skip attributes starting with underscore if the import type is dy_import_module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant