mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
Issue #27348: Merge exception formatting fix from 3.5 into 3.6
This commit is contained in:
commit
f3b0639417
4 changed files with 18 additions and 7 deletions
|
@ -4156,7 +4156,7 @@ class Context(object):
|
|||
>>> context.create_decimal_from_float(3.1415926535897932)
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
decimal.Inexact
|
||||
decimal.Inexact: None
|
||||
|
||||
"""
|
||||
d = Decimal.from_float(f) # An exact conversion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue