equivalent of getbuffer for BytesIO in Python 2 -


in python 3, can size of byteio object via object.getbuffer().nbytes (where object = byteio()), best equivalent getbuffer() in python 2? doing exploring, found out can use len(object.getvalue()) or sys.getsizeof(object), don't know if python 2 accept them.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -