mattia wrote:
Il Sat, 14 Mar 2009 10:30:43 +0100, Vlastimil Brom ha scritto:2009/3/14 mattia <[email protected]>:How can I convert the following string: 'AAR','ABZ','AGA','AHO','ALC','LEI','AOC', EGC','SXF','BZR','BIQ','BLL','BHX','BLQ' into this sequence: ['AAR','ABZ','AGA','AHO','ALC','LEI','AOC', EGC','SXF','BZR','BIQ','BLL','BHX','BLQ'] Thanks a lot, Mattia -- http://mail.python.org/mailman/listinfo/python-listApart from the "obvious" and rather discouragedlist(eval("'AAR','ABZ','AGA','AHO'"))['AAR', 'ABZ', 'AGA', 'AHO']Why discouraged?
Because it uses eval(). Eval can execute arbitrary python code, including some of the dangerous ones.
-- http://mail.python.org/mailman/listinfo/python-list
