title: Can I construct a numpy object zero-d array from its value in a single expression?
body: <p>These all work (ie, have <code>.shape == ()</code>):</p>
  
  <pre><code>np.array(1, dtype=object)
  np.array("foo", dtype=object)
  np.array(object(), dtype=object)
  </code></pre>
  
  <p>But this does not:</p>
  
  <pre><code>np.array((0, 0), dtype=object)  # .shape == (2,)
  </code></pre>
  
  <p>I can achieve this with two assignments as:</p>
  
  <pre><code>def make_scalar(x):
      value = np.empty((), dtype=object)
      value[()] = x
      return value
  
  make_scalar((0, 0))  # .shape == ()
  </code></pre>
  
  <p>Is there a builtin function that will allow me to create this 0d array in a single expression (for arbitrary scalar values)?</p>