Re: [Numpy-discussion] doc error in fromregex

2009-03-09 Thread Stéfan van der Walt
2009/3/9 Neal Becker : > 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 > > Oh, so you mean pass a filename or an open file.  I thought it meant it could > read from a string. Yes, the

Re: [Numpy-discussion] doc error in fromregex

2009-03-09 Thread Neal Becker
Stéfan van der Walt wrote: > The code contains > > if not hasattr(file, "read"): > file = open(file,'r') > > so it should work. > > 2009/3/9 Neal Becker : >> http://docs.scipy.org/doc/numpy/reference/generated/numpy.fromregex.html#numpy.fromregex >> says 'str or file', but I don't

Re: [Numpy-discussion] doc error in fromregex

2009-03-09 Thread Stéfan van der Walt
The code contains if not hasattr(file, "read"): file = open(file,'r') so it should work. 2009/3/9 Neal Becker : > 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

[Numpy-discussion] doc error in fromregex

2009-03-09 Thread Neal Becker
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 ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listin