[Numpy-discussion] Opinions wanted for PEP 793 – PyModExport: A new entry point for C extension modules

2025-10-18 Thread Petr Viktorin via NumPy-Discussion
Hello, I'd like to hear opinions from NumPy team's (and other scientific library maintainers) on PEP 793: https://peps.python.org/pep-0793/ What is this? I propose a new way to initialize C extension modules: rather than the current `PyInit_*` function, you would define `PyModExport_*`. Rather

[Numpy-discussion] Regarding nparray reshape() and refcount

2025-10-18 Thread 腾刘 via NumPy-Discussion
Hi all, In one of numexpr's Issue: https://github.com/pydata/numexpr/issues/521 a user points out an unexpected behavior regarding refcount of a ndarray. After some experiments I found that it can be replicated in a small example (https://dpaste.com/337WPLFCM): ``` import numpy as np import sys

[Numpy-discussion] next NumPy triage meeting - Wednesday, October 1st, 2025 at 6 pm UTC

2025-10-18 Thread Inessa Pawson via NumPy-Discussion
The next NumPy triage meeting will be held this Wednesday, October 1st at 18:00 (6 pm) UTC. This is a meeting where we synchronously triage prioritized PRs and issues. Everyone is welcome to attend and contribute to a conversation. Join us via Zoom: https://numfocus-org.zoom.us/j/82096749952?pwd=MW

[Numpy-discussion] next NumPy community meeting - Wednesday, October 22nd, 2025 at 18:00 UTC

2025-10-18 Thread Inessa Pawson via NumPy-Discussion
The next NumPy community meeting will be held this Wednesday, October 22nd at 18:00 (6 pm) UTC. Join us via Zoom: https://numfocus-org.zoom.us/j/83278611437?pwd=ekhoLzlHRjdWc0NOY2FQM0NPemdkZz09 Everyone is welcome and encouraged to attend. To add to the meeting agenda the topics you’d like to discu

[Numpy-discussion] Re: Improving the Thread Safety of NumPy's Test Suite

2025-10-18 Thread Britney Whittington
Big update! I'm working on one of the last PRs needed to get the test suite running under `pytest-run-parallel`. I recently submitted a large PR [1] that marked up any tests that were thread-unsafe (this was recently merged), and this latest PR [2] seeks to integrate a `pytest-run-parallel` run

[Numpy-discussion] next NumPy community meeting - Wednesday, October 8th, 2025 at 18:00 UTC

2025-10-18 Thread Inessa Pawson via NumPy-Discussion
The next NumPy community meeting will be held this Wednesday, October 8th at 18:00 (6 pm) UTC. Join us via Zoom: https://numfocus-org.zoom.us/j/83278611437?pwd=ekhoLzlHRjdWc0NOY2FQM0NPemdkZz09 Everyone is welcome and encouraged to attend. To add to the meeting agenda the topics you’d like to discus

[Numpy-discussion] Re: Regarding nparray reshape() and refcount (腾刘)

2025-10-18 Thread Stefano Miccoli via NumPy-Discussion
On 30 Sep 2025, at 18:00, [email protected] wrote: It seems that B2's ref of A2 is stolen by this assignment out = B2. And In A3 , B3 case, we deleteout first and it seems that the ref in out is returned back to B3. I'm not sure if this is the intended behavior and I cannot