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

Method __rmul__

numpy/core/tests/test_ufunc.py:1954–1956  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

1952 return MyThing(self.shape[len(i):])
1953
1954 def __rmul__(self, other):
1955 MyThing.rmul_count += 1
1956 return self
1957
1958 np.float64(5)*MyThing((3, 3))
1959 assert_(MyThing.rmul_count == 1, MyThing.rmul_count)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected