string to integer problem
Diez B. Roggisch
deets_noospaam at web.de
Sun Feb 8 12:00:11 EST 2004
More information about the Python-list mailing list
Sun Feb 8 12:00:11 EST 2004
- Previous message (by thread): string to integer problem
- Next message (by thread): string to integer problem
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> I'm currently having problems with data returned from a MySQL database in > as much as the data returned is of the form '(1,10,23,33,35,48)' i.e. a > list variable holding 6 integers returned as a string. >>> s = '(1,10,23,33,35,48)' >>> t = eval(s) >>> print t (1,10,23,33,35,48) -- Regards, Diez B. Roggisch
- Previous message (by thread): string to integer problem
- Next message (by thread): string to integer problem
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list