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

Method __init__

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

Source from the content-addressed store, hash-verified

76
77class Intent:
78 def __init__(self, intent_list=[]):
79 self.intent_list = intent_list[:]
80 flags = 0
81 for i in intent_list:
82 if i == "optional":
83 flags |= wrap.F2PY_OPTIONAL
84 else:
85 flags |= getattr(wrap, "F2PY_INTENT_" + i.upper())
86 self.flags = flags
87
88 def __getattr__(self, name):
89 name = name.lower()

Callers

nothing calls this directly

Calls 1

upperMethod · 0.80

Tested by

no test coverage detected