How to get size of BytesIO in Python

If you want to find out the size of the data stored in a io.BytesIO instance in Python, use

how-to-get-size-of-bytesio-in-python.py
my_bytesio.getbuffer().nbytes

Check out similar posts by category: Python