file = open("images.jpeg", "rb")
c = file.read(512)
print(type(c))
print(c)
file.close()
c is a str object. Shouldn't it be a bytes object? According to doc, it should be!
In Python 3.2, it is really a bytes object. What happened in Python2.7?
Platform: Kubuntu 12.04 64-bit
structmodule to "Interpret strings as packed binary data".