mirror of
https://github.com/python/cpython.git
synced 2025-10-06 23:21:06 +00:00
Remaining fallout from 17911
The code module was using a private function from traceback in order to skip a frame - used the direct interface to do that instead, The decimal module suffered minor fallout from formatting changes ('None' as a value is now not printed by traceback, the same as None was not before). The cgitb module was passing a bogus exception type (type.__name__) into format_exception, which uncovered that format_exception and print_exception had been ignoring the etype for some time, so the compatibility thunk to the new code now does the same thing.
This commit is contained in:
parent
3737e600f4
commit
2f0441f03f
3 changed files with 17 additions and 28 deletions
|
@ -4108,7 +4108,7 @@ class Context(object):
|
|||
>>> context.create_decimal_from_float(3.1415926535897932)
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
decimal.Inexact: None
|
||||
decimal.Inexact
|
||||
|
||||
"""
|
||||
d = Decimal.from_float(f) # An exact conversion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue