--- tags: - python --- The buffer protocol provides access to underlying memory buffer. The producer is the type that wraps a buffer and implements the "buffer interface" through which they export data about the underlying buffer. The consumer is who gains access to the underlying buffer.