title: convert ascii to integer like '\x01' inputs
body: <p>I get data from network in bytearray and I need to get integer value in bytearray[i]. It is ASCII and when I try to convert integer with int() I get exception. How can I try to convert '\x01' to get 1 in python? Thanks.</p>