[Numpy-discussion] doc error in fromregex

Neal Becker ndbecker2@gmail....
Mon Mar 9 07:33:47 CDT 2009

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 <ndbecker2@gmail.com>:
>> 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.

More information about the Numpy-discussion mailing list