print statement hasn't resulted in
what i need.
looking for a suggestion on how to format this, '\x00\x11\xb2\x00@,O\xa4' into
this [00-11-B2-00-40-2C-4F-A4]
tia
Best regards,
eMyListsDDgmailto:emylists...@gmail.com
Steve,
glad you pointed that out.
struct.unpack or something...i'll look into that module.
thx
> On 14-Jul-10 11:35, eMyListsDDg wrote:
>> '\x00\x11\xb2\x00@,O\xa4'
>> the above str is being returned from one key/value pair in a dictionary. it
>> is
Hello Alan,
> First please start new threads wirth a new email, do not reply to
thought i did, my apologies.
> "eMyListsDDg" wrote
> First please start new threads wirth a new email, do not reply to
> a previous post - it confuses threaded readers. (and sometime
thanks,
def conv_tst(bytes)
return ('-'.join([binascii.hexlify(v) for v in bytes]))
i ended up experimenting with the suggestions and the above returns what i'm
looking for, i.e., the formatted mac addr to store in a sqlite db.
i'm sure there are other ways, though the abov
t; % ('-'.join([hex(v)[2:] for v in theValue]) )
> Sorry,
> Alan G.
--
Best regards,
eMyListsDDgmailto:emylists...@gmail.com
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
on a win7 system with python ver=2.7.14, a python script i'm trying to utilize
returns :
#-
Traceback (most recent call last):
File "salamandra.py", line 16, in
import curses
File "c:\python27\lib\curses\__init__.py", lin
link above incase another user has same issue,
thanks for the help, the script runs and didn't need cygwin thankfully.
> On 28/10/17 06:10, eMyListsDDg wrote:
>> on Win7 how can i get a 'curses' lib installed so this script runs?
> Do a Google search for windows cur