[SciPy-user] str(numpy.inf)

Robert Kern robert.kern@gmail....
Wed Feb 14 11:36:01 CST 2007


Samuel GARCIA wrote:
> Hi list,
> 
> I have this problem
> str(numpy.inf) under linux give 'inf'
> str(numpy.inf) under win32 give '1.#INF'
> 
> It is a problem for me because with a GUI in LineEdit, for example, the
> end user who have to enter a float can enter inf under linux but not
> under win32.
> 
> Any idea to solve this ?

No. We (and Python) defer to the C library for such things, and they each use
different representations.

-- 
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 SciPy-user mailing list