From 9bf73c032fbf0ea27ebf6e53223c3bc69ee0dbc5 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Fri, 21 Feb 2025 15:59:17 +0300 Subject: [PATCH] Add `.. versionadded` directive to `dis` CLI options (#130267) --- Doc/library/dis.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index e0e7286214ac..fca4a550f284 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -105,18 +105,26 @@ The following options are accepted: Show inline caches. + .. versionadded:: 3.13 + .. option:: -O, --show-offsets Show offsets of instructions. + .. versionadded:: 3.13 + .. option:: -P, --show-positions Show positions of instructions in the source code. + .. versionadded:: 3.14 + .. option:: -S, --specialized Show specialized bytecode. + .. versionadded:: 3.14 + If :file:`infile` is specified, its disassembled code will be written to stdout. Otherwise, disassembly is performed on compiled source code received from stdin. -- 2.47.3