MCPcopy Index your code
hub / github.com/numpy/numpy / __init__

Method __init__

numpy/f2py/tests/test_array_from_pyobj.py:71–79  ·  view source on GitHub ↗
(self, intent_list=[])

Source from the content-addressed store, hash-verified

69
70class Intent:
71 def __init__(self, intent_list=[]):
72 self.intent_list = intent_list[:]
73 flags = 0
74 for i in intent_list:
75 if i == "optional":
76 flags |= wrap.F2PY_OPTIONAL
77 else:
78 flags |= getattr(wrap, "F2PY_INTENT_" + i.upper())
79 self.flags = flags
80
81 def __getattr__(self, name):
82 name = name.lower()

Callers

nothing calls this directly

Calls 1

upperMethod · 0.80

Tested by

no test coverage detected