This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients BTaskaya, mark.dickinson, skrah, tim.peters, veky
Date 2020-02-07.18:35:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581100553.37.0.559998968837.issue39576@roundup.psfhosted.org>
In-reply-to
Content
Formulas based on physical RAM probably work well on Linux, but not so well on Windows:  Windows has no "overcommit".  Whether a virtual memory request succeeds on Windows depends on how much RAM (+ swap space, if any) has already been requested across all processes.  It doesn't matter whether pages have actually been created, merely the total number of pages that _may_ be created.

I never bumped into this issue before, because I never used MAX_PREC before ;-)  When I intended to do exact arithmetic in `decimal`, I did this instead:

- guesstimated the max number of decimal digits a computation would need

- set `prec` to be comfortably - but not massively - larger than that

- enabled the Inexact trap, so if I guessed too low I'd get an exception

Maybe the docs could suggest that instead?
History
Date User Action Args
2020-02-07 18:35:53tim.peterssetrecipients: + tim.peters, mark.dickinson, skrah, veky, BTaskaya
2020-02-07 18:35:53tim.peterssetmessageid: <1581100553.37.0.559998968837.issue39576@roundup.psfhosted.org>
2020-02-07 18:35:53tim.peterslinkissue39576 messages
2020-02-07 18:35:53tim.peterscreate