Money

Latest version: v1.3.0

Safety actively analyzes 613649 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

1.4

===

+ Merged Python 2 and 3 sources.

1.3

===

1.3.0

------------------

+ Migrated to Babel 2.2 or higher. New CLDR and new API for ``babel.numbers.format_currency()`` (reported by `chrisrossi <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 throw ``InvalidOperandType`` (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.3

------------------

+ Throw an exception if used with Babel 2.2 or higher (reported by `chrisrossi <https://github.com/chrisrossi>`_).

1.2.2

------------------

+ Added support for SQLAlchemy composite columns (by `dahlia <https://github.com/dahlia>`_)

1.2.1

------------------

+ Fixed bug in `__rsub__()` (fix by `zedlander <https://github.com/zedlander>`_)

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.