Abandoned a écrit :
(snip)
> import cPickle as pickle
> a="{2:3,4:6,2:7}"
> s=pickle.dumps(a, -1)
> g=pickle.loads(s);
> print g
> '{2:3,4:6,2:7}'
>
> Thank you very much for your answer but result is a string ??
>
Of course it's a string. That's what you pickled. What did you hope ? If
you want a dict back, then pickle a dict.
--
http://mail.python.org/mailman/listinfo/python-list
- Re: Convert string to command.. Marc 'BlackJack' Rintsch
- Re: Convert string to command.. Abandoned
- Re: Convert string to command.. Bruno Desthuilliers
- Re: Convert string to command.. Hrvoje Niksic
- Re: Convert string to command.. Abandoned
- Re: Convert string to command.. Hrvoje Niksic
- Re: Convert string to command.. Abandoned
- Re: Convert string to command.. Hrvoje Niksic
- Re: Convert string to command.. Carsten Haese
- Re: Convert string to command.. Hrvoje Niksic
- Re: Convert string to command.. Bruno Desthuilliers
- Re: Convert string to command.. Hrvoje Niksic
- Re: Convert string to command.. Diez B. Roggisch
- Re: Convert string to command.. Abandoned
- Re: Convert string to command.. Diez B. Roggisch
- Re: Convert string to command.. Abandoned
- Re: Convert string to command.. Hrvoje Niksic
- Re: Convert string to command.. Matimus
- Re: Convert string to command.. Richard Brodie
- Re: Convert string to command.. Bruno Desthuilliers
- Re: Convert string to command.. Bruno Desthuilliers
