Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [3.12] GH-105774: Clarify operation of normalize() (GH-106093) (GH-106128) | Miss Islington (bot) | 2023-06-27 | 1 | -6/+37 |
| | |||||
* | Removed unnecessary escaping of asterisks (#103714) | Richard Hajek | 2023-04-24 | 1 | -1/+1 |
| | | | | | Removed unnecessary escaping of asterisks, as visible both on GitHub and in https://docs.python.org/3/library/decimal.html#decimal.localcontext Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | gh-101100: Fix Sphinx warnings in `decimal` module (#102125) | Hugo van Kemenade | 2023-02-25 | 1 | -84/+84 |
| | | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> | ||||
* | gh-99087: Add missing newline for prompts in docs (GH-98993) | Stanley | 2022-12-09 | 1 | -0/+1 |
| | | | Add newline for prompts so copying to REPL does not cause errors. | ||||
* | Docs: Fix backtick errors found by sphinx-lint (#97998) | Hugo van Kemenade | 2022-10-07 | 1 | -4/+4 |
| | | | Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> | ||||
* | gh-96959: Update HTTP links which are redirected to HTTPS (GH-96961) | Serhiy Storchaka | 2022-09-24 | 1 | -1/+1 |
| | |||||
* | Docs: remove redundant "adverb-adjective" hyphens from compound modifiers ↵ | Ned Batchelder | 2022-07-05 | 1 | -5/+5 |
| | | | | | (GH-94551) Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021 | ||||
* | gh-92417: `fractions`, `decimal`: Improve docs for alternative constructor ↵ | Alex Waygood | 2022-05-19 | 1 | -2/+3 |
| | | | | | methods (GH-92421) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> | ||||
* | gh-91291: Accept attributes as keyword arguments in decimal.localcontext ↵ | Sam Ezeh | 2022-04-22 | 1 | -2/+18 |
| | | | | | (#32242) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | bpo-43774: Add more links to configure options (GH-25363) | Victor Stinner | 2021-04-12 | 1 | -2/+2 |
| | |||||
* | bpo-43774: Document configure options (GH-25283) | Victor Stinner | 2021-04-08 | 1 | -1/+2 |
| | | | | | | Add Doc/using/configure.rst documentation to document configure, preprocessor, compiler and linker options. Add a new section about the "Python debug build". | ||||
* | Revert "bpo-26680: Incorporate is_integer in all built-in and standard ↵ | Raymond Hettinger | 2020-10-07 | 1 | -14/+0 |
| | | | | | library numeric types (GH-6121)" (GH-22584) This reverts commit 58a7da9e125422323f79c4ee95ac5549989d8162. | ||||
* | bpo-26680: Incorporate is_integer in all built-in and standard library ↵ | Robert Smallshire | 2020-10-01 | 1 | -0/+14 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | numeric types (GH-6121) * bpo-26680: Adds support for int.is_integer() for compatibility with float.is_integer(). The int.is_integer() method always returns True. * bpo-26680: Adds a test to ensure that False.is_integer() and True.is_integer() are always True. * bpo-26680: Adds Real.is_integer() with a trivial implementation using conversion to int. This default implementation is intended to reduce the workload for subclass implementers. It is not robust in the presence of infinities or NaNs and may have suboptimal performance for other types. * bpo-26680: Adds Rational.is_integer which returns True if the denominator is one. This implementation assumes the Rational is represented in it's lowest form, as required by the class docstring. * bpo-26680: Adds Integral.is_integer which always returns True. * bpo-26680: Adds tests for Fraction.is_integer called as an instance method. The tests for the Rational abstract base class use an unbound method to sidestep the inability to directly instantiate Rational. These tests check that everything works correct as an instance method. * bpo-26680: Updates documentation for Real.is_integer and built-ins int and float. The call x.is_integer() is now listed in the table of operations which apply to all numeric types except complex, with a reference to the full documentation for Real.is_integer(). Mention of is_integer() has been removed from the section 'Additional Methods on Float'. The documentation for Real.is_integer() describes its purpose, and mentions that it should be overridden for performance reasons, or to handle special values like NaN. * bpo-26680: Adds Decimal.is_integer to the Python and C implementations. The C implementation of Decimal already implements and uses mpd_isinteger internally, we just expose the existing function to Python. The Python implementation uses internal conversion to integer using to_integral_value(). In both cases, the corresponding context methods are also implemented. Tests and documentation are included. * bpo-26680: Updates the ACKS file. * bpo-26680: NEWS entries for int, the numeric ABCs and Decimal. Co-authored-by: Robert Smallshire <rob@sixty-north.com> | ||||
* | bpo-41205: Document Decimal power 0 to the 0 (GH-21386) | Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) | 2020-07-19 | 1 | -0/+3 |
| | | | Co-authored-by: Mark Dickinson <dickinsm@gmail.com> | ||||
* | Remove reference to 3.7 and 3.8 backports. (GH-20754) | Stefan Krah | 2020-06-09 | 1 | -1/+0 |
| | |||||
* | Mention backports (GH-18715) | Stefan Krah | 2020-02-29 | 1 | -1/+1 |
| | |||||
* | bpo-39794: Add --without-decimal-contextvar (#18702) | Stefan Krah | 2020-02-29 | 1 | -3/+12 |
| | |||||
* | bpo-39576: Clarify the word size for the 32-bit build. (#18616) | Stefan Krah | 2020-02-23 | 1 | -2/+2 |
| | |||||
* | bpo-39576: docs: set context for decimal arbitrary precision arithmetic (#18594) | Stefan Krah | 2020-02-21 | 1 | -8/+58 |
| | |||||
* | bpo-26256: Document algorithm speed for the Decimal module. (#4808) | Cheryl Sabella | 2019-02-02 | 1 | -0/+20 |
| | |||||
* | bpo-30055: add testcleanup to leave a fresh context (#1094) | Marco Buttu | 2017-04-13 | 1 | -0/+5 |
| | |||||
* | Issue #26331: Implement the parsing part of PEP 515. | Brett Cannon | 2016-09-09 | 1 | -3/+7 |
| | | | | Thanks to Georg Brandl for the patch. | ||||
* | merge | Raymond Hettinger | 2016-08-13 | 1 | -5/+11 |
|\ | |||||
| * | Issue #27720: Fix error in eng_to_decimal docs and add examples from the ↵ | Raymond Hettinger | 2016-08-13 | 1 | -5/+11 |
| | | | | | | | | | | | | specification. (Based on a first draft patch from Evelyn Mitchell.) | ||||
* | | Issue #26462: Merge code block fixes from 3.5 | Martin Panter | 2016-07-29 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #26462: Doc: reduce literal_block warnings, fix syntax highlighting. | Martin Panter | 2016-07-26 | 1 | -1/+1 |
| | | | | | | | | Patch by Julien Palard. | ||||
* | | Merge Issue #22558. | Terry Jan Reedy | 2016-06-11 | 1 | -0/+2 |
|\ \ | |/ | |||||
| * | Issue #22558: Add remaining doc links to source code for Python-coded modules. | Terry Jan Reedy | 2016-06-11 | 1 | -0/+2 |
| | | | | | | | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi. | ||||
* | | merge with 3.5 | Georg Brandl | 2016-02-26 | 1 | -3/+0 |
|\ \ | |/ | |||||
| * | Closes #25910: fix dead and permanently redirected links in the docs. Thanks ↵ | Georg Brandl | 2016-02-26 | 1 | -3/+0 |
| | | | | | | | | to SilentGhost for the patch. | ||||
* | | Issue #25928: Add Decimal.as_integer_ratio(). Python parts and docs by | Stefan Krah | 2015-12-28 | 1 | -0/+13 |
|/ | | | | Mark Dickinson. | ||||
* | Issue #25161: Merge full stops from 3.4 into 3.5 | Martin Panter | 2015-10-10 | 1 | -1/+1 |
|\ | |||||
| * | Issue #25161: Add full stops in documentation; patch by Takase Arihiro | Martin Panter | 2015-10-10 | 1 | -1/+1 |
| | | |||||
* | | Fix minor docs markup errors. | Serhiy Storchaka | 2015-03-14 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Fix minor docs markup errors. | Serhiy Storchaka | 2015-03-14 | 1 | -1/+1 |
| | | |||||
* | | Issue #10650: Remove the non-standard 'watchexp' parameter from the | Stefan Krah | 2014-04-30 | 1 | -9/+3 |
| | | | | | | | | | | Decimal.quantize() method in the Python version. It had never been present in the C version. | ||||
* | | #13437: link to the source code for a few more modules | Andrew Kuchling | 2014-03-19 | 1 | -1/+2 |
|/ | |||||
* | Issue #19794: Improved markup for True/False constants. | Serhiy Storchaka | 2013-11-26 | 1 | -13/+13 |
| | |||||
* | Issue #15783: Except for the number methods, the C version of decimal now | Stefan Krah | 2012-12-15 | 1 | -41/+54 |
| | | | | | supports all None default values present in decimal.py. These values were largely undocumented. | ||||
* | Merge typo fix from 3.2. | Mark Dickinson | 2012-11-18 | 1 | -1/+1 |
|\ | |||||
| * | Typo fix. | Mark Dickinson | 2012-11-18 | 1 | -1/+1 |
| | | |||||
* | | Issue #12005: merge doc patch from 3.2 | Mark Dickinson | 2012-11-18 | 1 | -0/+23 |
|\ \ | |/ | |||||
| * | Issue #12005: clarify behaviour of % and // for Decimal objects. | Mark Dickinson | 2012-11-18 | 1 | -0/+23 |
| | | |||||
* | | Issue #16348: merge fix from 3.2. | Mark Dickinson | 2012-10-31 | 1 | -6/+15 |
|\ \ | |/ | |||||
| * | Issue #16348: Fix incorrect documentation for Decimal.remainder_near. | Mark Dickinson | 2012-10-31 | 1 | -6/+15 |
| | | |||||
* | | Closes #10650: Deprecate the watchexp parameter of Decimal.quantize(). | Stefan Krah | 2012-08-30 | 1 | -0/+5 |
| | | |||||
* | | Use the same exception hierarchy as decimal.py. FloatOperation now also | Stefan Krah | 2012-03-23 | 1 | -1/+1 |
| | | | | | | | | | | inherits from TypeError. Cleanup in module initialization to make repeated import failures robust. | ||||
* | | Document decimal.MIN_ETINY. | Stefan Krah | 2012-03-21 | 1 | -9/+12 |
| | | |||||
* | | Issue #7652: Integrate the decimal floating point libmpdec library to speed | Stefan Krah | 2012-03-21 | 1 | -29/+147 |
|/ | | | | | up the decimal module. Performance gains of the new C implementation are between 12x and 80x, depending on the application. | ||||
* | #13730 grammar fix | Terry Jan Reedy | 2012-01-14 | 1 | -1/+1 |
| |