I want to have a bytes object with the size of 1. I tried the built-in declaration:
>>> bytes(3)
b'\x00\x00\x00'
However, even though set the parameter equal to zero, the size of this exact object is not zero because of its internal structure.
>>> a = bytes(0)
>>> import sys
>>> sys.getsizeof(a)
33
So is there a way to create an object whose size is only 1 byte? Honestly I do not have to have bytes ojects, other data structures are good to my program as well as long as it is only one byte.