]> granicus.if.org Git - python/commitdiff
Merged revisions 79699 via svnmerge from
authorMark Dickinson <dickinsm@gmail.com>
Sat, 3 Apr 2010 15:51:03 +0000 (15:51 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sat, 3 Apr 2010 15:51:03 +0000 (15:51 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79699 | mark.dickinson | 2010-04-03 16:47:46 +0100 (Sat, 03 Apr 2010) | 1 line

  Add Misc/NEWS entry for r79609.
........

Misc/NEWS

index d006b6f1905d576203e1687e87991a4d84eec7d6..a1465d768022bc864e17f62eada2f039fcabb076 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -301,6 +301,12 @@ C-API
 Library
 -------
 
+- Issue #8257: The Decimal construct now accepts a float instance
+  directly, converting that float to a Decimal of equal value:
+
+     >>> Decimal(1.1)
+     Decimal('1.100000000000000088817841970012523233890533447265625')
+
 - Issue #8294: The Fraction constructor now accepts Decimal and float
   instances directly.