python store lines from stdin directly to list objects
<p>In researching the answer to this question here on stackoverflow, I've learned a lot of new things, but have so far been unable to close the deal.</p>

<p>My python process will be receiving one line of input via stdin, e.g.</p>

<pre><code>[{'name':'ry', 'age':28}, {'name':'bo', 'age':11}, {'name':'ed', 'age':99}]
</code></pre>

<p>...and I'd like to be able to store this line directly to a list object that I can then iterate over, e.g.</p>

<pre><code>for i in list:
    print i['age'], i['name']
</code></pre>

<p>...but I just cannot get this to work, whether I use <code>sys.stdin()</code> or the <code>fileinput</code> module. For example, even when I explicitly create a list with <code>x = list(stdin.readline())</code> it ends up making each character a separate item in the list, not parsing the text in the way I want it to. Anyway.. back to searching. (Thanks for reading.)</p>
