May-30-2023, 03:01 AM
(This post was last modified: May-30-2023, 03:01 AM by deanhystad.)
Python does not have unsigned types. It has bytes, but no shorts or longs. Those are C types. Python types are unsized.
If you need to work with C-type values you can use the ctypes library.
https://docs.python.org/3/library/ctypes.html
Or you can use the struct library.
https://docs.python.org/3/library/struct.html
I think the struct library sounds like a better fit for what you describe.
If you need to work with C-type values you can use the ctypes library.
https://docs.python.org/3/library/ctypes.html
Or you can use the struct library.
https://docs.python.org/3/library/struct.html
I think the struct library sounds like a better fit for what you describe.