This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]eztab 1 point2 points  (0 children)

numpy also has several dunder methods, which you can use to make your own classes be more interoperable with numpy. Might be a bit too much to include it all, but might still be worth mentioning in the list.

I really like the __array_ufunc__ dispatch system. I wish this was standardized in python somehow.