Stream: helpdesk (published)

Topic: ✔ juliacall: Python does not accept !


view this post on Zulip Leandro Martínez (Sep 05 2022 at 16:45):

Seems that in Python the ! is not a valid character:

In [15]: list = jl.CellListMap.neighborlist!(system)
  File "<ipython-input-15-59232b509f2e>", line 1
    list = jl.CellListMap.neighborlist!(system)
                                      ^
SyntaxError: invalid syntax

How do you people deal with this for interoperability? Define for instance myfunc_inplace or similar just to support that interface? Or am I missing something simpler?

view this post on Zulip Jayesh K. Gupta (Sep 06 2022 at 20:01):

neighborlist_b should work?

view this post on Zulip Andrés Riedemann (Sep 07 2022 at 01:08):

https://github.com/SciML/diffeqpy#note-about-

view this post on Zulip Leandro Martínez (Sep 07 2022 at 13:45):

Oh, that works. Thanks you both! (works on juliacall/pythoncall as well)

view this post on Zulip Notification Bot (Sep 07 2022 at 13:45):

Leandro Martínez has marked this topic as resolved.


Last updated: Nov 22 2024 at 04:41 UTC