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

Method __getitem__

numpy/f2py/symbolic.py:574–582  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

572 **{k: as_expr(v) for k, v in kwargs.items()})
573
574 def __getitem__(self, index):
575 # Provided to support C indexing operations that .pyf files
576 # may contain.
577 index = as_expr(index)
578 if not isinstance(index, tuple):
579 index = index,
580 if len(index) > 1:
581 ewarn(f'C-index should be a single expression but got `{index}`')
582 return Expr(Op.INDEXING, (self,) + index)
583
584 def substitute(self, symbols_map):
585 """Recursively substitute symbols with values in symbols map.

Callers

nothing calls this directly

Calls 3

as_exprFunction · 0.85
ewarnFunction · 0.85
ExprClass · 0.85

Tested by

no test coverage detected