diff options
Diffstat (limited to 'Lib/decimal.py')
-rw-r--r-- | Lib/decimal.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py index e624a6dbbe..eea9448f43 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py @@ -1433,6 +1433,8 @@ class Decimal(object): else: return s*int(self._int[:self._exp] or '0') + __trunc__ = __int__ + def __long__(self): """Converts to a long. |