]> granicus.if.org Git - python/commitdiff
Merged revisions 86286 via svnmerge from
authorMark Dickinson <dickinsm@gmail.com>
Sun, 7 Nov 2010 11:29:03 +0000 (11:29 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 7 Nov 2010 11:29:03 +0000 (11:29 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86286 | mark.dickinson | 2010-11-07 11:24:44 +0000 (Sun, 07 Nov 2010) | 1 line

  Issue 10297: Add missing import in decimal example snippet.
........

Doc/library/decimal.rst

index 2ab138d2d12a1386074b7c36d479689f913dd074..357882f87125b7f27a16c2b7ea06cf233fc1807a 100644 (file)
@@ -57,6 +57,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')