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

Function _unpack_tuple

numpy/lib/arraysetops.py:125–130  ·  view source on GitHub ↗

Unpacks one-element tuples for use as return values

(x)

Source from the content-addressed store, hash-verified

123
124
125def _unpack_tuple(x):
126 """ Unpacks one-element tuples for use as return values """
127 if len(x) == 1:
128 return x[0]
129 else:
130 return x
131
132
133def _unique_dispatcher(ar, return_index=None, return_inverse=None,

Callers 1

uniqueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected