Determine whether for loop is iterating over a list or a generator
<p>Is there a way to tell whether, in python, you are iterating through a list or a generator?</p>

<pre><code>for i in range(10):
     print some_param     # will identify as a list

for i in xrange(10):
     print some_param     # will identify as a generator
</code></pre>
