These are chat archives for dropbox/pyston
hex(np.int64(0))between cpython an pyston
hex()cpython directly calls
tp_as_number->nb_hexand we do the "full lookup" (calling
>>> i = np.int64(0) >>> hex(i) '0x0L' >>> i.__hex__() '0x0'
cls->setAttr(__hex__,...)thing) it's probably also a little bit slower but we can easily set this slots when we define the types to get the same speed as using the c api.
cls->setAttr(__hex__, ...), we can also set
cls->nb_hex = xxx?
long_cls->tp_hash = long_hash;or
skipped a lot of stuff until we call into runtimeCallInternal
How to skip those stuff? By type
next in gdb?
runtimeCallInternaland continued. Because I know that
callattrInternalwill eventually call into that.