title: Numpy array: concatenate arrays and integers
body: <p>In my Python program I concatenate several integers and an array. It would be intuitive if this would work:</p>
  
  <pre><code>x,y,z = 1,2,np.array([3,3,3])
  np.concatenate((x,y,z))
  </code></pre>
  
  <p>However, instead all ints have to be converted to np.arrays:</p>
  
  <pre><code>x,y,z = 1,2,np.array([3,3,3])
  np.concatenate((np.array([x]),np.array([y]),z))
  </code></pre>
  
  <p>Especially if you have many variables this manual converting is tedious. The problem is that x and y are 0-dimensional arrays, while z is 1-dimensional. Is there any way to do the concatenation without the converting?  </p>