def write(self, b):

        self._checkClosed()
        self._checkWritable()

        if isinstance(b, six.text_type):
            raise TypeError("can't write str to binary stream")

        n = len(b)
        if n == 0:
            return 0

        pos = self._pos

        # Is the pointer beyond the real end of data?
        end2off = pos - self._node.nrows
        if end2off > 0:
            # Zero-fill the gap between the end of data and the pointer.
            self._append_zeros(end2off)

        # Append data.
        self._node.append(
            np.ndarray(buffer=b, dtype=self._vtype, shape=self._vshape(n)))

        self._pos += n

        return n
Renders config option with a given name.
dataset/ETHPy150Open PyTables/PyTables/tables/nodes/filenode.py/RawPyTablesIO.write--crossover with--dataset/ETHPy150Open google/grr/grr/gui/api_plugins/config.py/RenderConfigOption