array.tobytes()
Convert the array to an array of machine values and return the bytes representation (the same sequence of bytes that would be written to a file by the tofile() method.)
New in version 3.2: tostring() is renamed to tobytes() for clarity.
Please login to continue.