-
Notifications
You must be signed in to change notification settings - Fork 66
Tradecommit #96
Tradecommit #96
Conversation
…t when check_unchecked_msgs flag is set to True
972dc41
to
641bae4
Compare
@@ -84,9 +82,9 @@ def consumption(self): | |||
utility = self.consume_everything() | |||
assert is_zero(utility - 10 ** 0.2 * 10 ** 0.5 * 10 ** | |||
0.3), (utility, 10 ** 0.2 * 10 ** 0.5 * 10 ** 0.3) | |||
assert self.possession('a') == 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be hard to port to other language. I suggest to use self.possession
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, but in this case I prefer to keep it nice in python and find more awkward springs in other languages later. We don't even know if another language will happen or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For a standard of an economic simulation library, yes it will be in multiple languages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok in this case let's give both options. I will make a pioneered which does not depreciate possessions.
No description provided.