From d51ec71b8263d3c11df0b609d6850c6d28051412 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Tue, 18 Feb 2025 17:38:23 +0300 Subject: [PATCH] Add `.. versionadded` directive to `dis` CLI options --- Doc/library/dis.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index e0e7286214ac11..fca4a550f28441 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.