Skip to content

Conversation

leosobral
Copy link

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.

This fixes a problem when calling deepcopy() on Money, which caused a new
Currency instance to be created.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant