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

Method __getitem__

numpy/_core/defchararray.py:595–599  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

593 raise ValueError("Can only create a chararray from string data.")
594
595 def __getitem__(self, obj):
596 val = ndarray.__getitem__(self, obj)
597 if isinstance(val, character):
598 return val.rstrip()
599 return val
600
601 # IMPLEMENTATION NOTE: Most of the methods of this class are
602 # direct delegations to the free functions in this module.

Callers

nothing calls this directly

Calls 1

rstripMethod · 0.80

Tested by

no test coverage detected