Numpy fromfile vs frombuffer. Examples >>> s = 'hello world' >>> np.