RE: [Python-Dev] Re: Decimal data type issues

[Paul Moore]
#- (Although I would say that the documentation in the PEP is currently #- very lacking in its coverage of how to use the type - I found the #- round() method after a lot of experimentation. Before the Decimal #- module is ready for prime time, it needs some serious documentation #- effort).
This is my fault, maybe:
- Methods like round() don't need to be discussed: the Spec defines how them work, and the PEP is for implementing the PEP.
- The PEP encourages to read the Spec, and round() is detailed in the Spec.
- Both code and documentation will be provided when the PEP requests to be "Final".
Because of these three reasons, there's a lack of definitions yet.
Of course, all of that will be perfectly documented (I'll do my best) when the PEP champions to Final.
. Facundo

"Batista, Facundo" FBatista@uniFON.com.ar writes:
This is my fault, maybe:
I wasn't trying to lay blame! It was more an observation about why I suspect some of these discussions get bogged down in theory rather than providing concrete code examples.
[...]
Of course, all of that will be perfectly documented (I'll do my best) when the PEP champions to Final.
If I get the time (sadly, quite unlikely) I'll do what I can to help.
Paul.

[Batista, Facundo]
...
- Methods like round() don't need to be discussed: the Spec defines
how them work, and the PEP is for implementing the PEP.
Actually, there is no round() operation in the spec. I don't remember whether there used to be, but there definitely isn't now. Doesn't mean we can't supply .round(), does mean we have to spell out what it does. I assume decimal.round(whatever) acts the same as the spec's decimal.plus() would act if "whatever" were temporarily (for the duration of plus()) folded into context. If so, that's all it needs to say.
participants (3)
-
Batista, Facundo
-
Paul Moore
-
Tim Peters