Skip to content

[juliacall] how to call Julia function with ! exclamation in name? #285

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

Closed
Moelf opened this issue Mar 22, 2023 · 1 comment
Closed

[juliacall] how to call Julia function with ! exclamation in name? #285

Moelf opened this issue Mar 22, 2023 · 1 comment

Comments

@Moelf
Copy link

Moelf commented Mar 22, 2023

No description provided.

@Moelf Moelf changed the title how to call function with ! exclamation in name? [juliacall] how to call Julia function with ! exclamation in name? Mar 22, 2023
@cjdoris
Copy link
Collaborator

cjdoris commented Mar 22, 2023

As a special case, if the function ends with a single ! you can replace it with _b (for "bang"). For example jl.push_b is push!.

For anything more complex, you can use getattr, such as getattr(jl, "push!").

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

2 participants