What to beware of reading old Numarray tutorials and examples?
Python currently uses Numpy for heavy duty math and image processing.
The earlier Numeric and Nu开发者_运维问答marray 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?
Two good resources:
- Numarray to numpy guide
- Differences between Numeric and numpy
精彩评论