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 need to create a C++ class which is iterable (from Python's perspective), hence I need to provide a dict implementation.
Is this completely impossible, e.g. I can't point to the given "attribute" or the "function" in the class? I was trying to use
type::of and attr(), but attr() points to the property object itself, not to the getter functor.
Thanks,
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I need to create a C++ class which is iterable (from Python's perspective), hence I need to provide a dict implementation.
Is this completely impossible, e.g. I can't point to the given "attribute" or the "function" in the class? I was trying to use
type::of and attr(), but attr() points to the property object itself, not to the getter functor.
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions