Skip to content

Commit 1ddf327

Browse files
committed
Fix the decistmt() doctest in the tokenize docs
1 parent eb03dbd commit 1ddf327

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

‎Doc/library/tokenize.rst‎

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -247,17 +247,8 @@ objects::
247247
>>> decistmt(s)
248248
"print (+Decimal ('21.3e-5')*-Decimal ('.1234')/Decimal ('81.7'))"
249249

250-
The format of the exponent is inherited from the platform C library.
251-
Known cases are "e-007" (Windows) and "e-07" (not Windows). Since
252-
we're only showing 12 digits, and the 13th isn't close to 5, the
253-
rest of the output should be platform-independent.
254-
255-
>>> exec(s) #doctest: +ELLIPSIS
256-
-3.21716034272e-0...7
257-
258-
Output from calculations with Decimal should be identical across all
259-
platforms.
260-
250+
>>> exec(s)
251+
-3.217160342717258e-07
261252
>>> exec(decistmt(s))
262253
-3.217160342717258261933904529E-7
263254
"""

0 commit comments

Comments
 (0)