I'm new to python programming but experienced in C. I can't figure out what the equivalent to a char in python is. From what I read there isn't one. A "char" in python is a one character string. In fact it might even be more than 1 byte if its unicode. I need to create a packet of data using bytes (read chars) that's say 128 bytes long and may contain nulls. I then want to write that packet to a serial port as a series of bytes not a string.
Whats the python equivalent of:
char buffer[128];
buffer[12] = '0x04'
buffer[15] = '0x00'
...etc