[Numpy-discussion] doc error in fromregex

Stéfan van der Walt stefan@sun.ac...
Mon Mar 9 07:13:17 CDT 2009

The code contains

    if not hasattr(file, "read"):
        file = open(file,'r')

so it should work.

2009/3/9 Neal Becker <ndbecker2@gmail.com>:
> http://docs.scipy.org/doc/numpy/reference/generated/numpy.fromregex.html#numpy.fromregex
> says 'str or file', but I don't think it takes str, only file name

More information about the Numpy-discussion mailing list