title: How to open and present raw binary data in Python?
body: <p>This seems to be the type of question that should have a lot of duplicates and plenty of answers, but my searches have led only to frustration and no useable solutions.</p>
  
  <p>In Python (preferably 3.x), I would like to know how I can open a file of an arbitrary type, read the bytes that are stored on disk, and present those bytes in their most 'native', 'original', 'raw' form, before any encoding is done on them.</p>
  
  <p>If the file is stored on disk as a stream of <code>00010100 10000100 ...</code> then that's what I would like to have presented on the screen.</p>
  
  <p>These sort of questions usually elicit the response 'why do you want to know' and 'what's the use case'. I'm curious, that's my use case.</p>
  
  <p>Before you mark this as duplicate, please be sure that the answer you have in mind does indeed answer the question (rather than merely discuss encodings, etc.). Thank you!</p>
  
  <p>EDIT AFTER FIRST THREE ANSWERS:</p>
  
  <p>Thanks to the three responders up to this point, and especially to J.F. Sebastian for the extended discussion. It appears from what has been said that my question boils down to how bytes in files are physically recorded to disk and how they can be read and presented. At this point it doesn't seem possible in Python to obtain a view on to the bytes in their raw form, but they are available in various representations; integers, hex values, ascii, etc. As the matter isn't settled, I will leave the question open for more input.</p>