[Python-Dev] proposal: add basic money type to the standard library
Guido van Rossum
guido@python.org
Tue, 26 Feb 2002 16:16:31 -0500
Tue, 26 Feb 2002 16:16:31 -0500
- Previous message: [Python-Dev] proposal: add basic money type to the standard library
- Next message: [Python-Dev] proposal: add basic money type to the standard library
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> A decimal would do as well, I suppose, at least in > terms of storing the raw value. The reason for trying > to come up with a monetary type is to make operations between > monetary values having two different currencies illegal. > Coercion between two of those would always have to be > made explicit (for obvious reasons). Are you sure you're trying to solve a real problem here? There are lots of operations on monetary values that make no sense (try multiplying two amounts of money). --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] proposal: add basic money type to the standard library
- Next message: [Python-Dev] proposal: add basic money type to the standard library
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]