Skip to content

Conversation

@charris
Copy link
Member

@charris charris commented Sep 5, 2025

Backport of #29608.

(.venv) C:\apps\mapFolding>py Python 3.13.7 (tags/v3.13.7:bcee1c3, Aug 14 2025, 14:15:11) [MSC v.1944 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy >>> aa = numpy.zeros((4,3)) >>> aa array([[0., 0., 0.], [0., 0., 0.], [0., 0., 0.], [0., 0., 0.]]) >>> aa.fill(value=9) Traceback (most recent call last): File "<python-input-3>", line 1, in <module> aa.fill(value=9) ~~~~~~~^^^^^^^^^ TypeError: ndarray.fill() takes no keyword arguments >>> aa array([[0., 0., 0.], [0., 0., 0.], [0., 0., 0.], [0., 0., 0.]]) >>> aa.fill(9) >>> aa array([[9., 9., 9.], [9., 9., 9.], [9., 9., 9.], [9., 9., 9.]]) >>> 
```python (.venv) C:\apps\mapFolding>py Python 3.13.7 (tags/v3.13.7:bcee1c3, Aug 14 2025, 14:15:11) [MSC v.1944 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy >>> aa = numpy.zeros((4,3)) >>> aa array([[0., 0., 0.], [0., 0., 0.], [0., 0., 0.], [0., 0., 0.]]) >>> aa.fill(value=9) Traceback (most recent call last): File "<python-input-3>", line 1, in <module> aa.fill(value=9) ~~~~~~~^^^^^^^^^ TypeError: ndarray.fill() takes no keyword arguments >>> aa array([[0., 0., 0.], [0., 0., 0.], [0., 0., 0.], [0., 0., 0.]]) >>> aa.fill(9) >>> aa array([[9., 9., 9.], [9., 9., 9.], [9., 9., 9.], [9., 9., 9.]]) >>> ```
@charris charris added this to the 2.3.3 release milestone Sep 5, 2025
@charris charris added 08 - Backport Used to tag backport PRs 41 - Static typing labels Sep 5, 2025
@charris charris merged commit b1348d9 into numpy:maintenance/2.3.x Sep 5, 2025
77 checks passed
@charris charris deleted the backport-29608 branch September 5, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

08 - Backport Used to tag backport PRs 41 - Static typing

2 participants