[Python-checkins] r86286 - python/branches/py3k/Doc/library/decimal.rst

mark.dickinson python-checkins at python.org
Sun Nov 7 12:24:44 CET 2010


Author: mark.dickinson
Date: Sun Nov  7 12:24:44 2010
New Revision: 86286

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

Modified:
   python/branches/py3k/Doc/library/decimal.rst

Modified: python/branches/py3k/Doc/library/decimal.rst
==============================================================================
--- python/branches/py3k/Doc/library/decimal.rst	(original)
+++ python/branches/py3k/Doc/library/decimal.rst	Sun Nov  7 12:24:44 2010
@@ -51,6 +51,7 @@
   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')


More information about the Python-checkins mailing list