[SciPy-user] scipy 0.4.9 & typecode

Robert Kern robert.kern at gmail.com
Tue Jul 25 12:42:58 EDT 2006


fred wrote:
> Hi all,
> 
> Since I have upgraded scipy from 0.3.2 to 0.4.9, typecode(), used as
> 
> der = zeros(x.shape,x.typecode())
> 
> does not work anymore :

Please read the file COMPATIBILITY that comes with numpy. While typecodes are 
accepted by most functions which used to, they have been replaced by a much more 
flexible mechanism. Consequently, the methods that return typecodes have been 
deprecated. You want

   zeros(x.shape, x.dtype)

-- 
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