You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't completely figure out where __setattr__ should be overloaded, but I feel like it would be possible to enable this. For the record, __getattr__ seems to work fine; it's just __setattr__ that doesn't work.
As a temporary workaround, I am using the function:
I couldn't find an earlier issue but this seems like something that would be a common issue, so please share if there's a related one.
Basically, I think the following code should work:
However, it gives the following error:
I couldn't completely figure out where
__setattr__
should be overloaded, but I feel like it would be possible to enable this. For the record,__getattr__
seems to work fine; it's just__setattr__
that doesn't work.As a temporary workaround, I am using the function:
But I think
obj.x = 2
should do this automatically.(needed to overload
setproperty!
- see JuliaPy/PyCall.jl#11)cc @mkitti @marius311 @stevengj
The text was updated successfully, but these errors were encountered: