@nouiz It doesn't need to be explicitly in the key if it's in the hash of the C code.  The cache will differentiate it anyway. (Which is also why it put quotes around key)

Also, If you absolutely want this info before c_code(), then it should be fetched in the constructor.  This wouldn't change anything since we just have make_thunk fetching it and adding it to the op instance anyway.  Also, I'm pretty sure that __eq__ and __hash__ can be called before make_thunk which would crash since they can't access those attributes.