From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Tue, 12 Sep 2023 15:45:35 +0000 (+0100) Subject: gh-109319: deprecate dis.HAVE_ARGUMENT (#109320) X-Git-Tag: v3.13.0a1~463 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b303d3ad3e80e1d9b3befe6650f61f38b72179a4;p=thirdparty%2FPython%2Fcpython.git gh-109319: deprecate dis.HAVE_ARGUMENT (#109320) --- diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index d929242ede74..72e55cd81d42 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -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 diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index 8c6467562aeb..c18e15e0448f 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -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 ------------------------------ diff --git a/Misc/NEWS.d/next/Library/2023-09-12-13-01-55.gh-issue-109319.YaCMtW.rst b/Misc/NEWS.d/next/Library/2023-09-12-13-01-55.gh-issue-109319.YaCMtW.rst new file mode 100644 index 000000000000..d3cd86b04082 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-09-12-13-01-55.gh-issue-109319.YaCMtW.rst @@ -0,0 +1 @@ +Deprecate the ``dis.HAVE_ARGUMENT`` field in favour of ``dis.hasarg``.