In numpy book, it says: fromiter (iter or gen, dtype=None) but that's not true: Help on built-in function fromiter in module numpy.core.multiarray: fromiter(...) fromiter(iterable, dtype, count=-1) dtype is required