Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b303d3a

Browse files
authored
gh-109319: deprecate dis.HAVE_ARGUMENT (#109320)
1 parent 3cb9a8e commit b303d3a

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

Doc/library/dis.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,6 +1623,8 @@ iterations of the loop.
16231623
it is not true that comparison with ``HAVE_ARGUMENT`` indicates whether
16241624
they use their arg.
16251625

1626+
.. deprecated:: 3.13
1627+
Use :data:`hasarg` instead.
16261628

16271629
.. opcode:: CALL_INTRINSIC_1
16281630

Doc/whatsnew/3.13.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,11 @@ Deprecated
301301

302302
(Contributed by Erlend E. Aasland in :gh:`107948` and :gh:`108278`.)
303303

304+
* The ``dis.HAVE_ARGUMENT`` separator is deprecated. Check membership
305+
in :data:`~dis.hasarg` instead.
306+
(Contributed by Irit Katriel in :gh:`109319`.)
307+
308+
304309
Pending Removal in Python 3.14
305310
------------------------------
306311

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Deprecate the ``dis.HAVE_ARGUMENT`` field in favour of ``dis.hasarg``.

0 commit comments

Comments
 (0)