Python memoryview() Function

The memoryview() function in Python returns a memory view object from a specified object.

Syntax

Parameter

obj: This parameter represents a Bytes object or a bytearray object.

Return

This function returns a “memory view” object created from the given argument.

Example 1

Output

 

Pin It on Pinterest

Share This