<div dir="ltr"><div dir="ltr"><br></div>On Sat, Apr 25, 2020 at 4:50 PM <<a href="mailto:numpy-discussion-request@python.org">numpy-discussion-request@python.org</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send NumPy-Discussion mailing list submissions to<br>
        <a href="mailto:numpy-discussion@python.org" target="_blank">numpy-discussion@python.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<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>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:numpy-discussion-request@python.org" target="_blank">numpy-discussion-request@python.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:numpy-discussion-owner@python.org" target="_blank">numpy-discussion-owner@python.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of NumPy-Discussion digest..."<br>
Today's Topics:<br>
<br>
   1. Re: Feelings about type aliases in NumPy (Sebastian Berg)<br>
   2. beginner introduction to group (Tina Oberoi)<br>
   3. Re: beginner introduction to group (Robert Kern)<br>
   4. Re: Feelings about type aliases in NumPy (Stephan Hoyer)<br>
   5. Re: Feelings about type aliases in NumPy (Kevin Sheppard)<br>
<br><br><br>---------- Forwarded message ----------<br>From: Sebastian Berg <<a href="mailto:sebastian@sipsolutions.net" target="_blank">sebastian@sipsolutions.net</a>><br>To: <a href="mailto:numpy-discussion@python.org" target="_blank">numpy-discussion@python.org</a><br>Cc: <br>Bcc: <br>Date: Fri, 24 Apr 2020 13:29:59 -0500<br>Subject: Re: [Numpy-discussion] Feelings about type aliases in NumPy<br>On Fri, 2020-04-24 at 11:10 -0700, Stefan van der Walt wrote:<br>
> On Fri, Apr 24, 2020, at 08:45, Joshua Wilson wrote:<br>
> > But, Stephan pointed out that it might be confusing to users for<br>
> > objects to only exist at typing time, so we came around to the<br>
> > question of whether people are open to the idea of including the<br>
> > type<br>
> > aliases in NumPy itself. Ralf's concrete proposal was to make a<br>
> > module<br>
> > numpy.types (or maybe numpy.typing) to hold the aliases so that<br>
> > they<br>
> > don't pollute the top-level namespace. The module would initially<br>
> > contain the types<br>
> <br>
> That sounds very sensible.  Having types available with NumPy should<br>
> also encourage their use, especially if we can add some documentation<br>
> around it.<br>
<br>
I agree, I might have a small tendency for `numpy.types` if we ever<br>
find any usage other than direct typing that may be the better name?<br>
<br>
Out of curiousity, I guess `ArrayLike` would be an ABC that a<br>
downstream project can register with?<br>
<br>
- Sebastian<br>
<br>
<br>
> <br>
> Stéfan<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>
<br>
<br>
<br><br><br>---------- Forwarded message ----------<br>From: Tina Oberoi <<a href="mailto:oberoi011115tina@gmail.com" target="_blank">oberoi011115tina@gmail.com</a>><br>To: <a href="mailto:numpy-discussion@python.org" target="_blank">numpy-discussion@python.org</a><br>Cc: <br>Bcc: <br>Date: Sat, 25 Apr 2020 10:30:38 +0530<br>Subject: [Numpy-discussion] beginner introduction to group<br><div dir="ltr">Hi Everyone, <div>I am new to contributing to numpy. I have read the contributors guide and done with the set-up. Hope to make some good contributions and also to connect with all you great people in the numpy community.</div><div>Any suggestions and tips are always welcome.</div><div><br></div><div>Thanks and Regards</div></div></blockquote><div><br></div><div>Welcome, Tina!</div><div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div>Inessa Pawson<br></div></div></div></div></div></div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>---------- Forwarded message ----------<br>From: Robert Kern <<a href="mailto:robert.kern@gmail.com" target="_blank">robert.kern@gmail.com</a>><br>To: Discussion of Numerical Python <<a href="mailto:numpy-discussion@python.org" target="_blank">numpy-discussion@python.org</a>><br>Cc: <br>Bcc: <br>Date: Sat, 25 Apr 2020 01:59:57 -0400<br>Subject: Re: [Numpy-discussion] beginner introduction to group<br><div dir="ltr"><div dir="ltr">On Sat, Apr 25, 2020 at 1:02 AM Tina Oberoi <<a href="mailto:oberoi011115tina@gmail.com" target="_blank">oberoi011115tina@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Everyone, <div>I am new to contributing to numpy. I have read the contributors guide and done with the set-up. Hope to make some good contributions and also to connect with all you great people in the numpy community.</div><div>Any suggestions and tips are always welcome.</div></div></blockquote><div><br></div><div>Welcome! Do you have an idea what you would like to work on?</div><div><br></div></div>-- <br><div dir="ltr">Robert Kern</div></div>
<br><br><br>---------- Forwarded message ----------<br>From: Stephan Hoyer <<a href="mailto:shoyer@gmail.com" target="_blank">shoyer@gmail.com</a>><br>To: Discussion of Numerical Python <<a href="mailto:numpy-discussion@python.org" target="_blank">numpy-discussion@python.org</a>><br>Cc: <br>Bcc: <br>Date: Fri, 24 Apr 2020 23:40:20 -0700<br>Subject: Re: [Numpy-discussion] Feelings about type aliases in NumPy<br><div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 24, 2020 at 11:31 AM Sebastian Berg <<a href="mailto:sebastian@sipsolutions.net" target="_blank">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">On Fri, 2020-04-24 at 11:10 -0700, Stefan van der Walt wrote:<br>
> On Fri, Apr 24, 2020, at 08:45, Joshua Wilson wrote:<br>
> > But, Stephan pointed out that it might be confusing to users for<br>
> > objects to only exist at typing time, so we came around to the<br>
> > question of whether people are open to the idea of including the<br>
> > type<br>
> > aliases in NumPy itself. Ralf's concrete proposal was to make a<br>
> > module<br>
> > numpy.types (or maybe numpy.typing) to hold the aliases so that<br>
> > they<br>
> > don't pollute the top-level namespace. The module would initially<br>
> > contain the types<br>
> <br>
> That sounds very sensible.  Having types available with NumPy should<br>
> also encourage their use, especially if we can add some documentation<br>
> around it.<br>
<br>
I agree, I might have a small tendency for `numpy.types` if we ever<br>
find any usage other than direct typing that may be the better name?</blockquote><div dir="auto"><br></div><div dir="auto">Unless we anticipate adding a long list of type aliases (more than the three suggested so far), I would lean towards adding ArrayLike to the top level NumPy namespace as np.ArrayLike.</div><div dir="auto"><br></div><div dir="auto">Type annotations are becoming an increasingly core part of modern Python code. We should make it easy to appropriately type check functions that act on NumPy arrays, and a top level np.ArrayLike is definitely more convenient than np.types.ArrayLike.</div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Out of curiousity, I guess `ArrayLike` would be an ABC that a<br>
downstream project can register with?</blockquote><div dir="auto"><br></div><div dir="auto">ArrayLike will be a typing Protocol, automatically recognizing attributes like __array__ to indicate that something can be cast to an array.</div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
- Sebastian<br>
<br>
<br>
> <br>
> Stéfan<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>
<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></div>
<br><br><br>---------- Forwarded message ----------<br>From: Kevin Sheppard <<a href="mailto:kevin.k.sheppard@gmail.com" target="_blank">kevin.k.sheppard@gmail.com</a>><br>To: Discussion of Numerical Python <<a href="mailto:numpy-discussion@python.org" target="_blank">numpy-discussion@python.org</a>><br>Cc: <br>Bcc: <br>Date: Sat, 25 Apr 2020 07:49:58 +0100<br>Subject: Re: [Numpy-discussion] Feelings about type aliases in NumPy<br><div dir="auto">Typing is for library developers more than end users. I would also worry that putting it into the top level might discourage other typing classes since it is more difficult to add to the top level than to a lower level module. np.typing seems very clear to me.  </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 25, 2020, 07:41 Stephan Hoyer <<a href="mailto:shoyer@gmail.com" target="_blank">shoyer@gmail.com</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"><div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 24, 2020 at 11:31 AM Sebastian Berg <<a href="mailto:sebastian@sipsolutions.net" rel="noreferrer" target="_blank">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">On Fri, 2020-04-24 at 11:10 -0700, Stefan van der Walt wrote:<br>
> On Fri, Apr 24, 2020, at 08:45, Joshua Wilson wrote:<br>
> > But, Stephan pointed out that it might be confusing to users for<br>
> > objects to only exist at typing time, so we came around to the<br>
> > question of whether people are open to the idea of including the<br>
> > type<br>
> > aliases in NumPy itself. Ralf's concrete proposal was to make a<br>
> > module<br>
> > numpy.types (or maybe numpy.typing) to hold the aliases so that<br>
> > they<br>
> > don't pollute the top-level namespace. The module would initially<br>
> > contain the types<br>
> <br>
> That sounds very sensible.  Having types available with NumPy should<br>
> also encourage their use, especially if we can add some documentation<br>
> around it.<br>
<br>
I agree, I might have a small tendency for `numpy.types` if we ever<br>
find any usage other than direct typing that may be the better name?</blockquote><div dir="auto"><br></div><div dir="auto">Unless we anticipate adding a long list of type aliases (more than the three suggested so far), I would lean towards adding ArrayLike to the top level NumPy namespace as np.ArrayLike.</div><div dir="auto"><br></div><div dir="auto">Type annotations are becoming an increasingly core part of modern Python code. We should make it easy to appropriately type check functions that act on NumPy arrays, and a top level np.ArrayLike is definitely more convenient than np.types.ArrayLike.</div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Out of curiousity, I guess `ArrayLike` would be an ABC that a<br>
downstream project can register with?</blockquote><div dir="auto"><br></div><div dir="auto">ArrayLike will be a typing Protocol, automatically recognizing attributes like __array__ to indicate that something can be cast to an array.</div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
- Sebastian<br>
<br>
<br>
> <br>
> Stéfan<br>
> _______________________________________________<br>
> NumPy-Discussion mailing list<br>
> <a href="mailto:NumPy-Discussion@python.org" rel="noreferrer" target="_blank">NumPy-Discussion@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/numpy-discussion" rel="noreferrer noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/numpy-discussion</a><br>
<br>
<br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@python.org" rel="noreferrer" target="_blank">NumPy-Discussion@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/numpy-discussion" rel="noreferrer noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/numpy-discussion</a><br>
</blockquote></div></div>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@python.org" rel="noreferrer" target="_blank">NumPy-Discussion@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/numpy-discussion" rel="noreferrer noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/numpy-discussion</a><br>
</blockquote></div>
_______________________________________________<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><br clear="all"><br></div>