Casting

Charles R Harris charlesr.harris at gmail.com
Tue Oct 17 14:25:18 EDT 2006


On 10/12/06, Cristian Codorean <cristian.codorean at gmail.com> wrote:
>
> Hello list,
>   I got some old code that uses Scientific and Numeric. Recently, these
> two packages were updated to the latest versions together with python and my
> code started failing. The first major problem I have is when downcasting.
> Code that used to work now fails because the array cannot be safely cast
> anymore to the required type. If anyone could help me please and direct me
> to some documentation about when this change happened (version), why it
> happened, is there any other solution but using astype, can numpy help me in
> anyway in this situation, because I got really lost ...


This seems related to a more recent thread. Travis says that numeric
throwing an error on downcasting is traditional, so I am curious as to why
the previous code should have worked.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20061017/79ea60b2/attachment-0001.html>
-------------- next part --------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion


More information about the NumPy-Discussion mailing list