Re: dirty problem 3 lines

2010-09-02 Thread bussiere bussiere
It seems to work perfectly thanks a lot Bussiere Google Fan boy On Thu, Sep 2, 2010 at 7:32 AM, alex23 wrote: > bussiere bussiere wrote: >> it's just as it seems : >> i want to know how does ti works to get back an object from a string in >> python : >> pickle.loads("""b'\x80\x03]q\x00(K\x00K

Re: dirty problem 3 lines

2010-09-01 Thread alex23
bussiere bussiere wrote: > it's just as it seems : > i want to know how does ti works to get back an object from a string in > python : > pickle.loads("""b'\x80\x03]q\x00(K\x00K\x01e.'""") #doesn't work Repeating the question without providing any further information doesn't really help. This i

Re: [Pickle]dirty problem 3 lines

2010-09-01 Thread bussiere bussiere
it's just as it seems : i want to know how does ti works to get back an object from a string in python : pickle.loads("""b'\x80\x03]q\x00(K\x00K\x01e.'""") #doesn't work Google Fan boy On Wed, Sep 1, 2010 at 5:23 AM, MRAB wrote: > On 01/09/2010 03:33, bussiere bussiere wrote: >> >> i know it's

Re: [Pickle]dirty problem 3 lines

2010-08-31 Thread MRAB
On 01/09/2010 03:33, bussiere bussiere wrote: i know it's dirty, i know i should use json but i want to know, it's quiet late here : import pickle dump = """b'\x80\x03]q\x00(K\x00K\x01e.'""" print(pickle.loads(dump)) how can i get back my object from this string ? the string is : b'\x80\x03]q\x

[Pickle]dirty problem 3 lines

2010-08-31 Thread bussiere bussiere
i know it's dirty, i know i should use json but i want to know, it's quiet late here : import pickle dump = """b'\x80\x03]q\x00(K\x00K\x01e.'""" print(pickle.loads(dump)) how can i get back my object from this string ? the string is : b'\x80\x03]q\x00(K\x00K\x01e.' and i'am using python3 help wil