Skip to content

Commit

Permalink
pythongh-109319: deprecate dis.HAVE_ARGUMENT (python#109320)
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel authored and vstinner committed Sep 13, 2023
1 parent c17f5a3 commit 2f1d0a6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Doc/library/dis.rst
Expand Up @@ -1623,6 +1623,8 @@ iterations of the loop.
it is not true that comparison with ``HAVE_ARGUMENT`` indicates whether
they use their arg.

.. deprecated:: 3.13
Use :data:`hasarg` instead.

.. opcode:: CALL_INTRINSIC_1

Expand Down
5 changes: 5 additions & 0 deletions Doc/whatsnew/3.13.rst
Expand Up @@ -301,6 +301,11 @@ Deprecated

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

* The ``dis.HAVE_ARGUMENT`` separator is deprecated. Check membership
in :data:`~dis.hasarg` instead.
(Contributed by Irit Katriel in :gh:`109319`.)


Pending Removal in Python 3.14
------------------------------

Expand Down
@@ -0,0 +1 @@
Deprecate the ``dis.HAVE_ARGUMENT`` field in favour of ``dis.hasarg``.

0 comments on commit 2f1d0a6

Please sign in to comment.