Skip to content

add py_import_from()#1465

Draft
t-kalinowski wants to merge 1 commit intomainfrom
py_import_from
Draft

add py_import_from()#1465
t-kalinowski wants to merge 1 commit intomainfrom
py_import_from

Conversation

@t-kalinowski
Copy link
Copy Markdown
Member

When porting python code to R , the common idiom of importing multiple attributes from a module is cumbersome to translate to R. This makes it more ergonomic.

from jax import grad, vmap, jit

can be

py_import_from("jax", grad, vmap, jit)

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

Successfully merging this pull request may close these issues.

1 participant