Replies: 1 comment
-
I think this might be the functionality discussed in #2786, is it not? |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
I am trying to write rust code and generate python bindings as well as r bindings using
extendr
. Right now I am hitting an issue that leads me having to duplicate code. Here is an example:Sadly I can not do the following:
I get an error that
staticmethod
is not known within this scope. When trying to build wtih thepy-bindings
feature enabled. Building with ther-bindings
feature enabled works.The implementation stays the same, yet I have to write the code twice. This is not very nice.
Is there a way to conditionally add the attributes?
Kind regards,
ju6ge
Beta Was this translation helpful? Give feedback.
All reactions