MCPcopy Index your code
hub / github.com/python/cpython / NotAnInt

Class NotAnInt

Lib/test/test_struct.py:278–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276
277 # Some error cases.
278 class NotAnInt:
279 def __int__(self):
280 return 42
281
282 # Objects with an '__index__' method should be allowed
283 # to pack as integers. That is assuming the implemented

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by 1

runMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…