title: How to print numpy objects without line breaks
body: <p>I am logging input arguments to a function using</p>
  
  <pre><code>logging.debug('Input to this function = %s',
                inspect.getargvalues(inspect.currentframe())[3])
  </code></pre>
  
  <p>But I do not want the line breaks inserted within numpy objects.  <code>numpy.set_printoptions(linewidth=np.nan)</code> removes some, but line breaks are still inserted in 2D objects such as</p>
  
  <pre><code>array([[ 0.84148239,  0.71467895,  0.00946744,  0.3471317 ],
         [ 0.68041249,  0.20310698,  0.89486761,  0.97799646],
         [ 0.22328803,  0.32401271,  0.96479887,  0.43404245]])
  </code></pre>
  
  <p>I want it to be like this:</p>
  
  <pre><code>array([[ 0.84148239,  0.71467895,  0.00946744,  0.3471317 ], [ 0.68041249,  0.20310698,  0.89486761,  0.97799646], [ 0.22328803,  0.32401271,  0.96479887,  0.43404245]])
  </code></pre>
  
  <p>How can I do this?  Thanks.</p>