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 -

javascript - Generate barcode from text and convert it to base64 -

osx - "SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure" when retrieving page through wget -