[issue10650] decimal.py: quantize(): excess digits with watchexp=0

2014-04-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset c2f827af02a2 by Stefan Krah in branch 'default': Issue #10650: Remove the non-standard 'watchexp' parameter from the http://hg.python.org/cpython/rev/c2f827af02a2 -- ___ Python tracker

[issue10650] decimal.py: quantize(): excess digits with watchexp=0

2012-09-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset e4ca4edee8bd by Stefan Krah in branch 'default': Closes #10650: Deprecate the watchexp parameter of Decimal.quantize(). http://hg.python.org/cpython/rev/e4ca4edee8bd -- ___ Python tracker

[issue10650] decimal.py: quantize(): excess digits with watchexp=0

2012-08-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7db16ff9f5fd by Stefan Krah in branch 'default': Closes #10650: Deprecate the watchexp parameter of Decimal.quantize(). http://hg.python.org/cpython/rev/7db16ff9f5fd -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected st

[issue10650] decimal.py: quantize(): excess digits with watchexp=0

2012-08-25 Thread Stefan Krah
Changes by Stefan Krah : -- keywords: +patch Added file: http://bugs.python.org/file26996/issue10650.diff ___ Python tracker ___ ___ P

[issue10650] decimal.py: quantize(): excess digits with watchexp=0

2012-08-25 Thread Stefan Krah
Stefan Krah added the comment: Here's a patch deprecating watchexp. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue10650] decimal.py: quantize(): excess digits with watchexp=0

2012-07-01 Thread Stefan Krah
Stefan Krah added the comment: watchexp was available in rescale() from the beginning ... http://svn.python.org/view/sandbox/trunk/decimal/Decimal.py?revision=40721&view=markup ... and rescale() was renamed to quantize() in http://svn.python.org/view/sandbox/trunk/decimal/Decimal.py?revision

[issue10650] decimal.py: quantize(): excess digits with watchexp=0

2012-06-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Does anyone know why watchexp was put there in the first place? http://speleotrove.com/decimal/daops.html#refquant If no motivation for this can be found, I agree with Mark that it should be deprecated and removed. --

[issue10650] decimal.py: quantize(): excess digits with watchexp=0

2012-06-30 Thread Mark Dickinson
Mark Dickinson added the comment: I'd be happy to see watchexp deprecated. It feels like a leftover implementation artefact; its behaviour isn't properly defined anywhere, and as far as I can tell it has only a single testcase. -- ___ Python trac

[issue10650] decimal.py: quantize(): excess digits with watchexp=0

2012-06-30 Thread Stefan Krah
Stefan Krah added the comment: Ping. We have to decide if we need watchexp in _decimal. I've left it out so far since all I can gather from the docs is that it somehow behaves like _rescale. Can we deprecate it and replace it by a proper rescale? -- nosy: +georg.brandl ___

[issue10650] decimal.py: quantize(): excess digits with watchexp=0

2010-12-08 Thread Stefan Krah
Stefan Krah added the comment: NaNs, however, are decapitated: >>> x = Decimal("NaN5357671565858315212612021522416387828577") >>> y = 0 >>> x.quantize(y, watchexp=0) Decimal('NaN8315212612021522416387828577') -- ___ Python tracker

[issue10650] decimal.py: quantize(): excess digits with watchexp=0

2010-12-08 Thread Stefan Krah
New submission from Stefan Krah : I'm not sure if this is a documentation issue or a bug. If watchexp=0, quantize() also allows any number of digits: >>> x = Decimal("6885998238912213556789006667970467609814") >>> y = Decimal("1e2") >>> x.quantize(y) Traceback (most recent call last): File ""