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.

classification
Title: Settable defaulting to decimal instead of float
Type: enhancement Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Jim Fasarakis-Hilliard, georgefischhof, vstinner
Priority: normal Keywords:

Created on 2017-01-10 14:28 by georgefischhof, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (5)
msg285114 - (view) Author: George Fischhof (georgefischhof) Date: 2017-01-10 14:28
Hi There,

Settable defaulting to decimal instead of float

It would be good to be able to use decimal automatically instead of float if there is a setting. For example an environment variable or a flag file.

Where and when accuracy is more important than speed, the user could set this flag, and calculate with decimal numbers as learned in the school.

I think several people would use this function

Best regards,
George
msg285117 - (view) Author: Jim Fasarakis-Hilliard (Jim Fasarakis-Hilliard) * Date: 2017-01-10 14:46
This issue (and your other issue29223) would probably be a better for the python-ideas mailing list rather than the bug tracker.

See the FAQ in the Developer Guide for Python https://docs.python.org/devguide/faq.html#suggesting-changes

Both issues should probably be closed.
msg285118 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-01-10 14:49
You are not the first one to propose the idea.

2012: "make decimal the default non-integer instead of float?"
https://mail.python.org/pipermail/python-ideas/2012-September/016250.html

2014: "Python Numbers as Human Concept Decimal System"
https://mail.python.org/pipermail/python-ideas/2014-March/026436.html


Related discussions:

2008: "Decimal literal?"
https://mail.python.org/pipermail/python-ideas/2008-December/002379.html

2015: "Python Float Update"
https://mail.python.org/pipermail/python-ideas/2015-June/033787.html

PEP 240 "Adding a Rational Literal to Python".
msg285119 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-01-10 14:50
> This issue (and your other issue29223) ...

I guess that you mean issue #29224 "OS related file operations (copy, move, delete, rename...) should be placed into one module".
msg285121 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-01-10 14:51
Jim is right, I close the bug. The *bug* tracker is not the best place to propose ideas: please use the python-ideas mailing list ;-)
History
Date User Action Args
2022-04-11 14:58:41adminsetgithub: 73409
2017-01-10 14:51:26vstinnersetstatus: open -> closed
resolution: not a bug
messages: + msg285121
2017-01-10 14:50:07vstinnersetmessages: + msg285119
2017-01-10 14:49:12vstinnersetnosy: + vstinner
messages: + msg285118
2017-01-10 14:46:43Jim Fasarakis-Hilliardsetnosy: + Jim Fasarakis-Hilliard
messages: + msg285117
2017-01-10 14:28:10georgefischhofcreate