TypeError: 'long' object is not iterable
<p>I have just created a dictionary in python.</p>

<pre><code>stb_info = self.stb_type()
print type(stb_info) #The output gives me dict
</code></pre>

<p>When I want to run my tread function for each group</p>

<pre><code>for group_no, shelves in stb_info:
    self.thread_function(group_no, shelves)
</code></pre>

<p>I am getting the following error: </p>

<pre><code>TypeError: 'long' object is not iterable
</code></pre>

<p>So, how I can solve this bug?</p>