title: Cannot unpack non-iterable int object
body: <p>I need to use <code>__getitem__</code> for all 7 arguments in my class but <code>__getitem__</code> won't let me so I tried to use a <code>tuple</code> but I keep getting this error:</p>
  
  <pre><code>TypeError: cannot unpack non-iterable int object
  </code></pre>
  
  <p>What should I do?</p>
  
  <pre><code>def __getitem__(self, key):
      name,author,category,Isbn_number,printing_house,date,number_of_order = key
      return (self.name,self.author,self.category,self.Isbn_number,self.printing_house,self.date,self.number_of_order)
  </code></pre>