[Numpy-discussion] StringIO test failure with Python3.1.2

Robert Kern robert.kern@gmail....
Wed Mar 24 09:43:59 CDT 2010


On Wed, Mar 24, 2010 at 09:35, Nadav Horesh <nadavh@visionsense.com> wrote:
> Any idea why
>
>  from .io import StringIO
>
> and not
>
>  from io import StringIO
>
> ???
>
> (Why is the extra "." before "io")

It is a relative import, i.e. numpy.lib.io .

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco


More information about the NumPy-Discussion mailing list