Sep-17-2024, 03:31 PM
As a project to gauge my learning of python, and one that holds my interest, I’m playing with a program that reads an ancient, arcane, and obscure file system on a SD card, after several python code rewrites to test different structures, the bytearray() function has gotten me a long way down the road, but now it has confused me.
I can’t remember how I got on to this, although the variable/structure created by bytearray(), type() as a bytearray, but the array elements type() as int, conceptually, an intarray? Everything runs fine, can read and show directories, read file bitmaps (ancient is block in use) tables, basically just creeping forward.
Can anyone straighten out my misconception of bytearray() array elements being type() int, what do I have goofed up here?
curbie
I can’t remember how I got on to this, although the variable/structure created by bytearray(), type() as a bytearray, but the array elements type() as int, conceptually, an intarray? Everything runs fine, can read and show directories, read file bitmaps (ancient is block in use) tables, basically just creeping forward.
Can anyone straighten out my misconception of bytearray() array elements being type() int, what do I have goofed up here?
curbie