Which python functions work?


#1

experiencing more problems with specific Python code e.g:

line = “0x1,0xd”
print(line[0:3])
print(line[4:7])

prints 0x1 and 0xd

print(int(line[0:3],base=16)) crashes? It would seem not to like the base=16?


#2

Hi @nigelibrown,

we have to fix the doc for that, try with:

print(int(line[0:3],16))

base should not be added.
Let me know :slight_smile: