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

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

nginx - phpPgAdmin - log in works but I have to login again after clicking on any links -