Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-109319: deprecate dis.HAVE_ARGUMENT #109320

Merged
merged 4 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions Doc/library/dis.rst
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Deprecate the ``dis.HAVE_ARGUMENT`` field in favour of ``dis.hasarg``.