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
huh.
So collections.Iterable tests for the presence of the __iter__ method.
Value and friends have an __iter__ method that raises a TypeError.
I don't know why. My guess is that if you *don't* implement __iter__, then
under some circumstance python and/or numpy will try to iterate by calling
__getitem__, which will do something stupid on a Value object.
This seems backwards.
The text was updated successfully, but these errors were encountered: