MCPcopy Create free account
hub / github.com/numpy/numpy / __int__

Method __int__

numpy/core/tests/test_cython.py:130–131  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

128
129 class myint:
130 def __int__(self):
131 return 3
132
133 # These conversion passes via `__int__`, not `__index__`:
134 assert checks.conv_intp(3.) == 3

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected