From 1ddf32745b87116285b883eca5b882d8131fa311 Mon Sep 17 00:00:00 2001 From: Alexander R <140752247+AlexxRussell@users.noreply.github.com> Date: Wed, 18 Nov 2026 22:35:18 +0200 Subject: [PATCH] Fix the decistmt() doctest in the tokenize docs --- Doc/library/tokenize.rst | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/Doc/library/tokenize.rst b/Doc/library/tokenize.rst index 2d2cb28640d197..04b1d56e031c5c 100644 --- a/Doc/library/tokenize.rst +++ b/Doc/library/tokenize.rst @@ -247,17 +247,8 @@ objects:: >>> decistmt(s) "print (+Decimal ('21.3e-5')*-Decimal ('.1234')/Decimal ('81.7'))" - The format of the exponent is inherited from the platform C library. - Known cases are "e-007" (Windows) and "e-07" (not Windows). Since - we're only showing 12 digits, and the 13th isn't close to 5, the - rest of the output should be platform-independent. - - >>> exec(s) #doctest: +ELLIPSIS - -3.21716034272e-0...7 - - Output from calculations with Decimal should be identical across all - platforms. - + >>> exec(s) + -3.217160342717258e-07 >>> exec(decistmt(s)) -3.217160342717258261933904529E-7 """