Skip to content

Commit

Permalink
pythongh-109319: deprecate dis.HAC_ARGUMENT
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Sep 12, 2023
1 parent 8b55adf commit ca98632
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
`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 ca98632

Please sign in to comment.