<div dir="ltr"><div>Ah thank you for info, yes i'm talking about normal methods. </div><div>If i can get a link to a file that shows how dunder methods help with having cool coding APIs that would be great!</div><div><br></div><div>Thanks!</div><div><br></div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>Yours,</div><div dir="ltr"><br></div><div dir="ltr">Abdur-Rahmaan Janhangeer<div><a href="http://www.pythonmembers.club/" style="color:rgb(17,85,204)" target="_blank">pythonmembers.club</a> | <a href="https://github.com/Abdur-rahmaanJ" target="_blank">github</a><br></div><div>Mauritius</div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 5, 2020 at 10:32 PM Sebastian Berg <<a href="mailto:sebastian@sipsolutions.net">sebastian@sipsolutions.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
On Thu, 2020-03-05 at 11:14 +0400, Abdur-Rahmaan Janhangeer wrote:<br>
> Greetings list,<br>
> <br>
> I have a talk about dunder methods in Python <br>
> <br>
> (<br>
> <a href="https://conference.mscc.mu/speaker/67604187-57c3-4be6-987c-ea4bef388ad3" rel="noreferrer" target="_blank">https://conference.mscc.mu/speaker/67604187-57c3-4be6-987c-ea4bef388ad3</a><br>
> ) <br>
> <br>
> and it would be nice to include Numpy in the mix. Can someone point<br>
> me to one or two use cases / file link where dunder methods help<br>
> numpy? <br>
> <br>
<br>
I am not sure in what sense you are looking for. NumPy has its own set<br>
of dunder methods (some of which should not be used super much<br>
probably), like `__array__`, `__array_interface__`, `__array_ufunc__`,<br>
`__array_function__`, `__array_finalize__`, ...<br>
So we are using `__array_*__` for numpy related dunders.<br>
<br>
Of course we use most Python defined dunders, but I am not sure that<br>
you are looking for that?<br>
<br>
Best,<br>
<br>
Sebastian<br>
<br>
<br>
> Thanks<br>
> <br>
> fun info: i am a tiny numpy contributor with a one line merge.<br>
> _______________________________________________<br>
> NumPy-Discussion mailing list<br>
> <a href="mailto:NumPy-Discussion@python.org" target="_blank">NumPy-Discussion@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/numpy-discussion" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/numpy-discussion</a><br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@python.org" target="_blank">NumPy-Discussion@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/numpy-discussion" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/numpy-discussion</a><br>
</blockquote></div>