From: Mark Dickinson Date: Sun, 7 Nov 2010 11:24:44 +0000 (+0000) Subject: Issue 10297: Add missing import in decimal example snippet. X-Git-Tag: v3.2a4~88 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43ef32ae364930c12ee1ccf522c4fe75e6ea3d7f;p=python Issue 10297: Add missing import in decimal example snippet. --- diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index e82929cd6c..d0dedda40e 100644 --- a/Doc/library/decimal.rst +++ b/Doc/library/decimal.rst @@ -51,6 +51,7 @@ arithmetic. It offers several advantages over the :class:`float` datatype: alterable precision (defaulting to 28 places) which can be as large as needed for a given problem: + >>> from decimal import * >>> getcontext().prec = 6 >>> Decimal(1) / Decimal(7) Decimal('0.142857')