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
A confusion has been PyAttr accepting random Python objects but this is actually not legit.
For example, list should use a ListAttr because what it means by compile-time value is slightly different from a runtime object - when at compile-time we can say the hash(list) is returning the object id because it is compile-time constant, but at runtime this is not hashable or should be composing all its elements to perform the expensive hash.
The text was updated successfully, but these errors were encountered:
A confusion has been
PyAttr
accepting random Python objects but this is actually not legit.For example,
list
should use aListAttr
because what it means by compile-time value is slightly different from a runtime object - when at compile-time we can say thehash(list)
is returning the object id because it is compile-time constant, but at runtime this is not hashable or should be composing all its elements to perform the expensive hash.The text was updated successfully, but these errors were encountered: