Suppose I want to read an object from some stream. How do I do it?

For example, if the input stream contained the text:
[1, # python should ignore this comment
2]

and I do a "read" on it, I should obtain the result
[1, 2]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to