mirror of
https://github.com/python/cpython.git
synced 2025-09-19 15:10:58 +00:00
Apply the _is_special guard.
This commit is contained in:
parent
a7daba6866
commit
e5a0a9609f
1 changed files with 13 additions and 12 deletions
|
@ -760,6 +760,7 @@ class Decimal(object):
|
||||||
Captures all of the information in the underlying representation.
|
Captures all of the information in the underlying representation.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if self._is_special:
|
||||||
if self._isnan():
|
if self._isnan():
|
||||||
minus = '-'*self._sign
|
minus = '-'*self._sign
|
||||||
if self._int == (0,):
|
if self._int == (0,):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue