[SciPy-user] Convert a string list to array ?

Sebastian Haase haase@msg.ucsf....
Tue Feb 26 14:13:46 CST 2008


On Tue, Feb 26, 2008 at 8:50 PM, Stef Mientki <s.mientki@ru.nl> wrote:
> hello,
>
> I have a string list that I want to convert to an integer array
>  data_all = [ '12', '24' ]
>
> and now I would expect this would work, but it crashes:
>  data_all = asarray (  data_all, dtype = int )
>

do really mean a "full blown crash", i.e. seg-fault ??

-Sebastian Haase


More information about the SciPy-user mailing list