title: Creating numpy array of custom objects gives error "SystemError: error return without exception set"
body: <p>I am trying to use numpy to store some custom objects I've made.  The following is a simplified version of my program</p>
  
  <pre><code>import numpy as np
  
  class Element:
      def __init__(self): pass
  
  a = Element()
  periodicTable = np.array(range(7*32)).reshape((7,32))
  periodicTable[0][0] = a
  </code></pre>
  
  <p>However when I run this I get</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Users/Dan/Desktop/a.py", line 9, in &lt;module&gt;
      periodicTable[0][0] = a
  SystemError: error return without exception set
  </code></pre>
  
  <p>I'm not really sure what I'm doing wrong - as far as I can tell everything I've done should be legal.  The cryptic error message itself isn't very helpful - I believe that is a numpy issue however I've been unable to identify my problem.</p>