python-money icon indicating copy to clipboard operation
python-money copied to clipboard

Convert Currency into namedtuple

Open leosobral opened this issue 8 years ago • 0 comments

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.

leosobral avatar Jan 10 '17 11:01 leosobral