On 14/08/13 02:49, Marc Tompkins wrote:
On Tue, Aug 13, 2013 at 8:59 AM, Amit Saha wrote:
What does it mean (and will it always work?) when I don't specify any
encoding:
bytearray(ssid).decode()
u'BigPond679D85'
If you don't specify an encoding, then the default encoding is used; as you
On Tue, Aug 13, 2013 at 8:59 AM, Amit Saha wrote:
> What does it mean (and will it always work?) when I don't specify any
> encoding:
>
> >>> bytearray(ssid).decode()
> u'BigPond679D85'
>
If you don't specify an encoding, then the default encoding is used; as you
point out a bit later, your loc
On 12/08/13 11:40, eryksun wrote:
On Sun, Aug 11, 2013 at 9:14 PM, Amit Saha wrote:
import dbus
ssid=dbus.Array([dbus.Byte(66), dbus.Byte(105), dbus.Byte(103),
dbus.Byte(80), dbus.Byte(111), dbus.Byte(110), dbus.Byte(100),
dbus.Byte(54), dbus.Byte(55), dbus.Byte(57), dbus.Byte(68),
dbus.Byte(5
On 12/08/13 08:53, Amit Saha wrote:
Hello all,
The other day, I had to convert a dbus.Array [1] object to a string. I
found a way to do it, but I am not sure if that is the best way.
Does the Array object not have a "toString" method? Or similar?
What do you get when you call str() or repr()