[python-win32] character to integer

Chi Tai me at chi-tai.info
Mon Apr 4 15:16:32 CEST 2005


how can i make an integer value from a character value like this.

string = "Hallo"
integerval = string[0]
i = integerval + 2 #this does not work because integerval is not an
integer value

i want the in integervalue the intvalue of the hexvalue 0x48 ( the
character-value of "H")
Is there a simple possibility ?


More information about the Python-win32 mailing list