python-money
python-money copied to clipboard
Convert Currency into namedtuple
This fixes a problem when calling deepcopy() on Money, which caused a new Currency instance to be created.
Using namedtuple seems like a good fit to guarantee Currency immutability.