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 mark.dickinson
Recipients eric.smith, mark.dickinson
Date 2010-07-30.17:27:37
SpamBayes Score 0.0048663914
Marked as misclassified No
Message-id <1280510859.84.0.0996916259805.issue9337@psf.upfronthosting.co.za>
In-reply-to
Content
Alexander Belopolsky pointed out another nice aspect of this change:  after the change, let 'numerictype' be any of int, float, complex, Decimal or Fraction, and let 'x' be an instance of numerictype.  Then

numerictype(str(x))

recovers x exactly.

See also additional discussion at:

http://mail.python.org/pipermail/python-dev/2010-July/102515.html

The consensus (so far) seems to be in favour of this change.  I'll leave it a few more days in case people haven't seen the python-dev thread yet, and then assuming that there's no dissent I'll commit.
History
Date User Action Args
2010-07-30 17:27:40mark.dickinsonsetrecipients: + mark.dickinson, eric.smith
2010-07-30 17:27:39mark.dickinsonsetmessageid: <1280510859.84.0.0996916259805.issue9337@psf.upfronthosting.co.za>
2010-07-30 17:27:38mark.dickinsonlinkissue9337 messages
2010-07-30 17:27:37mark.dickinsoncreate