money v1.3.0 Release Notes
Release Date: 2016-04-17 // over 7 years ago-
Migrated to Babel 2.2 or higher. New CLDR and new API for
babel.numbers.format_currency()
(reported bychrisrossi <https://github.com/chrisrossi>
_).⬇️ Dropped support for Python 3.3
XMoney now only attempts automatic currency conversion in addition, substraction, and division.
Before, XMoney would convert currencies in comparison, including >= and <=, with results that were inconsistent with ==.
- ⚡️ Comparison operators
<
,<=
,>
,>=
now throwInvalidOperandType
(TypeError) if the operand is not a Money object. Code that relies on this should be updated to access the amount value explicitly (see example below).
.. code:: python
>>> m = Money(2, 'USD') # old code >>> m > 0 (raises InvalidOperandType) # 1.3.x >>> m.amount > 0 True
1.2
Previous changes from v1.2.2
-
- ➕ Added support for SQLAlchemy composite columns (by
dahlia <https://github.com/dahlia>
_)
- ➕ Added support for SQLAlchemy composite columns (by