Xah Lee (27.06.2005 12:33): > i have a large number of lines i want to turn into a list. > In perl, i can do > > @corenames=qw( > rb_basic_islamic > sq1_pentagonTile > sq_arc501Tile > sq_arc503Tile > ); > > use Data::Dumper; > print Dumper([EMAIL PROTECTED]); > > ---------- > is there some shortcut to turn lines into list in Python?
txt = """rb_basic_islamic sq1_pentagonTile sq_arc501Tile sq_arc503Tile""" print txt.splitlines() Matthias -- http://mail.python.org/mailman/listinfo/python-list