>>1 How about FUCK YOU OP and your blanket "x" should be outlawed statements. How about we ban auto-tune the same way, because I think it's destroying music as we know it. That's all the reason I need to ban shit, and that should be quite good enough for a closed minded cretin like you, OP
>>11 >>> import sys
>>> from StringIO import StringIO
>>> stdout = sys.stdout
>>> out = StringIO()
>>> a = [1,2,"Qwe",None,2.345,False]
>>> a
[1, 2, 'Qwe', None, 2.3450000000000002, False]
>>> sys.stdout = out
>>> print a
>>> sys.stdout = stdout
>>> out.seek(0)
>>> s = out.read()
>>> print s
[1, 2, 'Qwe', None, 2.3450000000000002, False]
>>> b = eval(s)
>>> print b
[1, 2, 'Qwe', None, 2.3450000000000002, False]
Yes.
Name:
Anonymous2011-11-05 15:58
>>12
Note that in >>> print s
[1, 2, 'Qwe', None, 2.3450000000000002, False]
it would be more obvious if I did >>> s
"[1, 2, 'Qwe', None, 2.3450000000000002, False]"