Skip to content Skip to sidebar Skip to footer
Showing posts with the label Subclass

Maintaining Numpy Subclass Inside A Container After Applying Ufunc

I have created a class derived from numpy's ndarray following numpy's documentation, and it… Read more Maintaining Numpy Subclass Inside A Container After Applying Ufunc

Some Numpy Functions Return Ndarray Instead Of My Subclass

I am subclassing Numpy's ndarray class, adding some meta-data and additional methods. I'm … Read more Some Numpy Functions Return Ndarray Instead Of My Subclass

Python: Dynamically Adding Attributes To A Built-in Class

Why doesn't it work for the built-in classes? Is using a subclass the best approach to fix it, … Read more Python: Dynamically Adding Attributes To A Built-in Class