[Numpy-discussion] Mathematica vs Matlab vs Python

Matthew Brett matthew.brett at gmail.com
Wed Jul 8 15:48:17 EDT 2009


Hi,

> Yup. It's not even very idiomatic Python. readlines() is probably a
> bad idea unless your file is trivial length, and even ignoring
> numpy.loadtxt(), all of this could be considerably simplified with the
> built-in csv module.

or a 1-liner with scipy.io.loadmat ...

Best,

Matthew



More information about the NumPy-Discussion mailing list