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

Method fromstring

numpy/f2py/symbolic.py:78–84  ·  view source on GitHub ↗
(cls, s, language=Language.C)

Source from the content-addressed store, hash-verified

76
77 @classmethod
78 def fromstring(cls, s, language=Language.C):
79 if language is Language.Fortran:
80 return {'.eq.': RelOp.EQ, '.ne.': RelOp.NE,
81 '.lt.': RelOp.LT, '.le.': RelOp.LE,
82 '.gt.': RelOp.GT, '.ge.': RelOp.GE}[s.lower()]
83 return {'==': RelOp.EQ, '!=': RelOp.NE, '<': RelOp.LT,
84 '<=': RelOp.LE, '>': RelOp.GT, '>=': RelOp.GE}[s]
85
86 def tostring(self, language=Language.C):
87 if language is Language.Fortran:

Callers 15

test_fromstringMethod · 0.80
test_fromstring_crashMethod · 0.80
test_fromstringFunction · 0.80
test_fromstring_complexFunction · 0.80
test_fromstring_bogusFunction · 0.80
test_fromstring_emptyFunction · 0.80
test_fromstring_missingFunction · 0.80

Calls 1

lowerMethod · 0.80

Tested by 15

test_fromstringMethod · 0.64
test_fromstring_crashMethod · 0.64
test_fromstringFunction · 0.64
test_fromstring_complexFunction · 0.64
test_fromstring_bogusFunction · 0.64
test_fromstring_emptyFunction · 0.64
test_fromstring_missingFunction · 0.64