[Numpy-discussion] Good use of __dunder__ methods in numpy
sebastian at sipsolutions.net
Thu Mar 5 13:31:30 EST 2020
On Thu, 2020-03-05 at 11:14 +0400, Abdur-Rahmaan Janhangeer wrote:
> Greetings list,
> I have a talk about dunder methods in Python
> and it would be nice to include Numpy in the mix. Can someone point
> me to one or two use cases / file link where dunder methods help
I am not sure in what sense you are looking for. NumPy has its own set
of dunder methods (some of which should not be used super much
probably), like `__array__`, `__array_interface__`, `__array_ufunc__`,
`__array_function__`, `__array_finalize__`, ...
So we are using `__array_*__` for numpy related dunders.
Of course we use most Python defined dunders, but I am not sure that
you are looking for that?
> fun info: i am a tiny numpy contributor with a one line merge.
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: This is a digitally signed message part
More information about the NumPy-Discussion