[Python-checkins] r86288 - in python/branches/release27-maint: Doc/library/decimal.rst
mark.dickinson
python-checkins at python.org
Sun Nov 7 12:29:03 CET 2010
Author: mark.dickinson
Date: Sun Nov 7 12:29:03 2010
New Revision: 86288
Log:
Merged revisions 86286 via svnmerge from
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.
........
Modified:
python/branches/release27-maint/ (props changed)
python/branches/release27-maint/Doc/library/decimal.rst
Modified: python/branches/release27-maint/Doc/library/decimal.rst
==============================================================================
--- python/branches/release27-maint/Doc/library/decimal.rst (original)
+++ python/branches/release27-maint/Doc/library/decimal.rst Sun Nov 7 12:29:03 2010
@@ -57,6 +57,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