What to beware of reading old Numarray tutorials and examples?

Posted by DarenW on Stack Overflow See other posts from Stack Overflow or by DarenW
Published on 2010-05-23T03:45:17Z Indexed on 2010/05/23 3:50 UTC
Read the original article Hit count: 245

Filed under:

Python currently uses Numpy for heavy duty math and image processing.

The earlier Numeric and Numarray are obsolete, but still today there are many tutorials, notes, sample code and other documentation using them. Some of these cover special topics of interest, some are well written but haven't been updated or replaced, or are otherwise of use. Quite a bit is the same between Numeric, Numarray and Numpy, so I usually get good mileage out these older docs. Ocassionaly, though, I run into a line of code that results in error. Not often enough to remember how to get around it, but usually I figure it out at the cost of some time.

What are the main things to watch out for when relying on such older documentation for current Numpy use? Is there a list of how to translate the differences that exist?

© Stack Overflow or respective owner

Related posts about numpy