Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2ec686d

Browse files
MNT: deprecate numpy.f2py.diagnose
1 parent00e23b3 commit2ec686d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

‎numpy/f2py/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
fromnumpy.exceptionsimportVisibleDeprecationWarning
1818

19-
from .importdiagnose,f2py2e
19+
from .importf2py2e
2020

2121
run_main=f2py2e.run_main
2222
main=f2py2e.main

‎numpy/f2py/diagnose.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
importos
33
importsys
44
importtempfile
5+
importwarnings
6+
7+
8+
# NumPy 2.3.0, 2025-05-01
9+
warnings.warn('The module numpy.f2py.diagnose is deprecated since NumPy 2.3.0.',
10+
DeprecationWarning,
11+
stacklevel=2)
512

613

714
defrun_command(cmd):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp