Re: s=str(binary)

2009-01-20 Thread gert
b = environ['CONTENT_TYPE'].split('boundary=')[1] oops forgot, is indeed better solution :) -- http://mail.python.org/mailman/listinfo/python-list

Re: s=str(binary)

2009-01-20 Thread gert
On Jan 20, 9:41 pm, John Machin wrote: > On Jan 21, 5:31 am, gert wrote: > > > On Jan 20, 5:23 am, John Machin wrote: > > > > On Jan 20, 12:54 pm, gert wrote: > > > > > How do you convert s back to binary data in python 3 so I can put in a > > > > sqlite blob ? > > > > Is there a build in funct

Re: s=str(binary)

2009-01-20 Thread John Machin
On Jan 21, 5:31 am, gert wrote: > On Jan 20, 5:23 am, John Machin wrote: > > > On Jan 20, 12:54 pm, gert wrote: > > > > How do you convert s back to binary data in python 3 so I can put in a > > > sqlite blob ? > > > Is there a build in function or do I need to use binascii ? > > > byte(s) or bi

Re: s=str(binary)

2009-01-20 Thread gert
On Jan 20, 5:23 am, John Machin wrote: > On Jan 20, 12:54 pm, gert wrote: > > > How do you convert s back to binary data in python 3 so I can put in a > > sqlite blob ? > > Is there a build in function or do I need to use binascii ? > > byte(s) or bin(s) would make more sense but can not figure i

Re: s=str(binary)

2009-01-19 Thread John Machin
On Jan 20, 12:54 pm, gert wrote: > How do you convert s back to binary data in python 3 so I can put in a > sqlite blob ? > Is there a build in function or do I need to use binascii ? > byte(s) or bin(s) would make more sense but can not figure it out ? Can't imagine why you would do str(binary_d