MCPcopy Index your code
hub / github.com/python-pillow/Pillow / __len__

Method __len__

Tests/test_image_array.py:63–64  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

61 self.__array_interface__ = arr_params
62
63 def __len__(self) -> int:
64 return len(self.img.tobytes())
65
66 def tobytes(self) -> bytes:
67 return self.img.tobytes()

Callers

nothing calls this directly

Calls 1

tobytesMethod · 0.45

Tested by

no test coverage detected