(a, slice_spec)
return _maybe_static(a)[slice_spec]
A version of __getitem__ that eagerly evaluates if possible.
A version of __getitem__ that eagerly evaluates if possible.
A version of __getitem__ that eagerly evaluates if possible .
def getitem(a, slice_spec):
  """A version of __getitem__ that eagerly evaluates if possible."""
  return _maybe_static(a)[slice_spec]
def getitem ( a , slice_spec ) : return _maybe_static ( a ) [ slice_spec ]