RE: Byte-Array to String

2007-04-20 Thread Carsten Haese
On Fri, 2007-04-20 at 14:39 +0100, Robert Rawlins - Think Blue wrote: > Thanks for that Carsten, > > I've given that a go and I still get similar results to what I've seen in the > past whereby it prints a couple of elements I would expect to see but other > which I'm not sure about, and what se

RE: Byte-Array to String

2007-04-20 Thread Robert Rawlins - Think Blue
From: Carsten Haese [mailto:[EMAIL PROTECTED] Sent: 20 April 2007 14:00 To: Robert Rawlins - Think Blue Cc: python-list@python.org Subject: RE: Byte-Array to String On Fri, 2007-04-20 at 09:51 +0100, Robert Rawlins - Think Blue wrote: > Morning Steve, > > > > That stuff looks mighty

RE: Byte-Array to String

2007-04-20 Thread Carsten Haese
On Fri, 2007-04-20 at 09:51 +0100, Robert Rawlins - Think Blue wrote: > Morning Steve, > > > > That stuff looks mighty promising, I did play around with the > toString() function yesterday but couldn’t get the damned thing > working. That's because Steven seems to have given you suboptimal adv

RE: Byte-Array to String

2007-04-20 Thread Robert Rawlins - Think Blue
my syntax is pretty confused as I'm so new to the language. Like I say, there is only one element of the array I'm interested in, I just need to see them all before I know which it is. Thanks again Steve, Rob From: Steven Howe [mailto:[EMAIL PROTECTED] Sent: 19 April 2007 16:51

Re: Byte-Array to String

2007-04-19 Thread Steven Howe
Robert Rawlins - Think Blue wrote: Hello Guys, I have a byte array passed to me by dbus and I'm looking to convert it into a string? Is that possible? Sorry for seeming like a putts with these questions, I'm not used to all these complex data types :-D The byte array looks something lik

Re: Byte-Array to String

2007-04-19 Thread Tim Golden
Robert Rawlins - Think Blue wrote: [... snip ...] > The first method, when I print its results just gives me > dbus.Array([dbus.UInt32(65547L)], signature=dbus.Signature('u')) the method > gives me that byte array and the third doesn't appear to work at all :-D > > Unfortunately nowhere seems to

RE: Byte-Array to String

2007-04-19 Thread Robert Rawlins - Think Blue
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Golden Sent: 19 April 2007 15:54 Cc: python-list@python.org Subject: Re: Byte-Array to String Robert Rawlins - Think Blue wrote: > I have a byte array passed to me by dbus and I'm looking to convert it into > a string? Is that

Re: Byte-Array to String

2007-04-19 Thread Tim Golden
Robert Rawlins - Think Blue wrote: > I have a byte array passed to me by dbus and I'm looking to convert it into > a string? Is that possible? Sorry for seeming like a putts with these > questions, I'm not used to all these complex data types :-D > > dbus.Array([dbus.Byte(54), dbus.Byte(0), dbus.B