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
In [1]: from pyramid.security import ALL_PERMISSIONS
In [2]: iter(ALL_PERMISSIONS)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-22-f8a3d5a1d337> in <module>()
----> 1 iter(ALL_PERMISSIONS)
TypeError: iter() returned non-iterator of type 'tuple'
Lastly, I don't see where this method is used in Pyramid. Should this code (the __iter__ method on AllPermissionsList) even exist?
The text was updated successfully, but these errors were encountered:
My understanding is that iter should return an iterator object.
However,
AllPermissionsList.__iter__
returns()
.Indeed, this raises a TypeError as expected:
Lastly, I don't see where this method is used in Pyramid. Should this code (the
__iter__
method onAllPermissionsList
) even exist?The text was updated successfully, but these errors were encountered: