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: Junk in the decimals namespace
Type: Stage:
Components: Library (Lib) Versions: Python 3.0, Python 3.1, Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: mark.dickinson Nosy List: facundobatista, mark.dickinson, rhettinger
Priority: high Keywords:

Created on 2009-01-02 22:31 by rhettinger, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (7)
msg78893 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2009-01-02 22:31
In r59144 , a bunch of internal-use constants were dumped in the main
namespace.  These all need to be prefixed with an underscore.  

They should be fixed right-away before people start using them.  Since
they are externally undocumented and since the internal notes describe
them as being only for internal-use, I think this can go in as a bugfix.
msg78894 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2009-01-02 22:35
Mark, it looks like r59144 merely moved these around and that they
existed beforehand.  Can we go ahead and get them renamed?  They are
defeating the extensive efforts we've made to keep that namespace free
of anything that isn't part of the documented spec.
msg78900 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2009-01-02 23:09
I assume you're referring to Dec_0 and friends?

Fixed in the trunk in r68182.  Leaving open until I get the chance to 
merge it to the other branches.
msg78901 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2009-01-02 23:22
Thanks.  BTW, my preferred new names are _One _Zero and _NegativeOne.
Names like dec_n1 are cryptic in places other than where they're defined.
msg78902 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2009-01-02 23:34
Fine.  Will re-rename in the morning.  Are _Inf, _negInf, _NaN and 
_Infsign okay as they are?
msg78907 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2009-01-03 00:01
Let's spell them out:  _Infinity, _NegativeInfinity, _NaN, and
_SignedInfinity.
msg78951 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2009-01-03 12:18
Done (r68191 through r68194).
History
Date User Action Args
2022-04-11 14:56:43adminsetgithub: 49062
2009-01-03 12:18:40mark.dickinsonsetstatus: open -> closed
messages: + msg78951
2009-01-03 00:01:55rhettingersetmessages: + msg78907
2009-01-02 23:34:04mark.dickinsonsetmessages: + msg78902
2009-01-02 23:22:46rhettingersetmessages: + msg78901
2009-01-02 23:09:41mark.dickinsonsetresolution: fixed
messages: + msg78900
versions: - Python 2.7
2009-01-02 22:35:12rhettingersetassignee: facundobatista -> mark.dickinson
messages: + msg78894
nosy: + mark.dickinson
2009-01-02 22:31:05rhettingercreate