.. _read:

		Returns the value of the memory word at ``offset``.

		Might raise WriteOnlyError_, if the device is write-only.
		Might raise AddressError_, if the offset exceeds the size of the device.

def read(self, offset):
		"""
		.. _read:

		Returns the value of the memory word at ``offset``.

		Might raise WriteOnlyError_, if the device is write-only.
		Might raise AddressError_, if the offset exceeds the size of the device.
		"""
		if(not self.mode & 0b01):
			raise WriteOnlyError("Device is Write-Only")
		if(offset >= self.size):
			raise AddressError("Offset({}) not in address space({})".format(offset, self.size))
		return self.repr_[offset].getvalue()