string to list? possible?
Lionel Ulmer
bbrox at bbrox.org
Sun Jan 20 15:11:16 EST 2002
More information about the Python-list mailing list
Sun Jan 20 15:11:16 EST 2002
- Previous message (by thread): string to list? possible?
- Next message (by thread): string to list? possible?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, 20 Jan 2002 19:38:20 -0000, maximilianscherr <MaximilianScherr at T-Online.de> wrote: >i need to convert a string like "[1, 2, 3, 4]" to a list [1, 2, 3, 4]. >possible? >>> a = eval("[1, 2, 3, 4]") >>> a [1, 2, 3, 4] But well, you need to be sure that no syntax errors are in the lists :-) Lionel -- Lionel Ulmer - http://www.bbrox.org/
- Previous message (by thread): string to list? possible?
- Next message (by thread): string to list? possible?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list