Proposal to accept NEP 52 (Python API cleanup for 2.0)
Hi all, A lot of work has been happening to implement NEP 52 ( https://numpy.org/neps/nep-0052-python-api-cleanup.html) over the past 1.5 months - mostly work by Mateusz Sokol, and review effort of Sebastian, Nathan and myself. The majority of API changes have been made. There's more to do of course and there are pending PRs for a good fraction of that. These two tracking issues cover a lot of ground and discussion around decision on individual APIs: - main namespace: https://github.com/numpy/numpy/issues/24306 - numpy.lib namespace: https://github.com/numpy/numpy/issues/24507 This PR with a migration guide will give a good sense of what has been removed or changed so far: https://github.com/numpy/numpy/pull/24693. In https://github.com/numpy/numpy/pull/24620 the NEP itself is being updated for changes that have been made. And it will mark the NEP as Accepted, which seems about time given that a lot of the work has already been merged. If there are no substantive objections within 7 days from this email, then the NEP will be accepted; see NEP 0 for more details. Cheers, Ralf
Hello, I have a couple of questions: 1. What is equivalent of np.byte_bounds? I have recently started using this. 2. Why are you removing business day functionality? Are there faster methods in python space for it? As far as I remember, for performance critical applications I have always resorted to numpy, including its business day functionality. Regards, DG
On 15 Sep 2023, at 21:12, Ralf Gommers <ralf.gommers@gmail.com> wrote:
Hi all,
A lot of work has been happening to implement NEP 52 (https://numpy.org/neps/nep-0052-python-api-cleanup.html <https://numpy.org/neps/nep-0052-python-api-cleanup.html>) over the past 1.5 months - mostly work by Mateusz Sokol, and review effort of Sebastian, Nathan and myself. The majority of API changes have been made. There's more to do of course and there are pending PRs for a good fraction of that. These two tracking issues cover a lot of ground and discussion around decision on individual APIs:
- main namespace: https://github.com/numpy/numpy/issues/24306 <https://github.com/numpy/numpy/issues/24306> - numpy.lib namespace: https://github.com/numpy/numpy/issues/24507 <https://github.com/numpy/numpy/issues/24507>
This PR with a migration guide will give a good sense of what has been removed or changed so far: https://github.com/numpy/numpy/pull/24693 <https://github.com/numpy/numpy/pull/24693>.
In https://github.com/numpy/numpy/pull/24620 <https://github.com/numpy/numpy/pull/24620> the NEP itself is being updated for changes that have been made. And it will mark the NEP as Accepted, which seems about time given that a lot of the work has already been merged.
If there are no substantive objections within 7 days from this email, then the NEP will be accepted; see NEP 0 for more details.
Cheers, Ralf
_______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-leave@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: dom.grigonis@gmail.com
On Fri, Sep 15, 2023 at 8:22 PM Dom Grigonis <dom.grigonis@gmail.com> wrote:
Hello,
I have a couple of questions: 1. What is equivalent of np.byte_bounds? I have recently started using this.
The migration guide says: Now it's available under ``np.lib.array_utils. byte_bounds`` 2. Why are you removing business day functionality? Are there faster
methods in python space for it? As far as I remember, for performance critical applications I have always resorted to numpy, including its business day functionality.
This change was abandoned, because it was too much work. That is explained in the PR that updates the NEP (https://github.com/numpy/numpy/pull/24620). Cheers, Ralf
On 15 Sep 2023, at 21:12, Ralf Gommers <ralf.gommers@gmail.com> wrote:
Hi all,
A lot of work has been happening to implement NEP 52 ( https://numpy.org/neps/nep-0052-python-api-cleanup.html) over the past 1.5 months - mostly work by Mateusz Sokol, and review effort of Sebastian, Nathan and myself. The majority of API changes have been made. There's more to do of course and there are pending PRs for a good fraction of that. These two tracking issues cover a lot of ground and discussion around decision on individual APIs:
- main namespace: https://github.com/numpy/numpy/issues/24306 - numpy.lib namespace: https://github.com/numpy/numpy/issues/24507
This PR with a migration guide will give a good sense of what has been removed or changed so far: https://github.com/numpy/numpy/pull/24693.
In https://github.com/numpy/numpy/pull/24620 the NEP itself is being updated for changes that have been made. And it will mark the NEP as Accepted, which seems about time given that a lot of the work has already been merged.
If there are no substantive objections within 7 days from this email, then the NEP will be accepted; see NEP 0 for more details.
Cheers, Ralf
_______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-leave@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: dom.grigonis@gmail.com
_______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-leave@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: ralf.gommers@googlemail.com
The text of the NEP is a bit difficult to read in parts. Some of the proposed changes are buried in comments in the code examples, and in some sections it's not clear what is actually being proposed. Parts of it read more like notes rather than a completed NEP. I would suggest moving all English text outside of code blocks, and making sure that complete English sentences are used everywhere. Aaron Meurer On Fri, Sep 15, 2023 at 12:14 PM Ralf Gommers <ralf.gommers@gmail.com> wrote:
Hi all,
A lot of work has been happening to implement NEP 52 (https://numpy.org/neps/nep-0052-python-api-cleanup.html) over the past 1.5 months - mostly work by Mateusz Sokol, and review effort of Sebastian, Nathan and myself. The majority of API changes have been made. There's more to do of course and there are pending PRs for a good fraction of that. These two tracking issues cover a lot of ground and discussion around decision on individual APIs:
- main namespace: https://github.com/numpy/numpy/issues/24306 - numpy.lib namespace: https://github.com/numpy/numpy/issues/24507
This PR with a migration guide will give a good sense of what has been removed or changed so far: https://github.com/numpy/numpy/pull/24693.
In https://github.com/numpy/numpy/pull/24620 the NEP itself is being updated for changes that have been made. And it will mark the NEP as Accepted, which seems about time given that a lot of the work has already been merged.
If there are no substantive objections within 7 days from this email, then the NEP will be accepted; see NEP 0 for more details.
Cheers, Ralf
_______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-leave@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: asmeurer@gmail.com
participants (3)
-
Aaron Meurer
-
Dom Grigonis
-
Ralf Gommers