newbie question
Sven R. Kunze
srkunze at mail.de
Thu Mar 24 13:47:49 EDT 2016
More information about the Python-list mailing list
Thu Mar 24 13:47:49 EDT 2016
- Previous message (by thread): newbie question
- Next message (by thread): newbie question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 24.03.2016 14:22, Matt Wheeler wrote: > On Thu, 24 Mar 2016 11:10 Sven R. Kunze, <srkunze at mail.de> wrote: > >> On 24.03.2016 11:57, Matt Wheeler wrote: >>>>>> import ast >>>>>> s = "(1, 2, 3, 4)" >>>>>> t = ast.literal_eval(s) >>>>>> t >>> (1, 2, 3, 4) >> I suppose that's the better solution in terms of safety. >> > It has the added advantage that the enquirer gets to import a module that > shares their name ;) One shouldn't underestimate this. ;-)
- Previous message (by thread): newbie question
- Next message (by thread): newbie question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list