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 skrah
Recipients akima, facundobatista, mark.dickinson, rhettinger, skrah
Date 2014-08-30.10:17:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1409393852.44.0.912216664369.issue22306@psf.upfronthosting.co.za>
In-reply-to
Content
The behavior is according to the specification:

  http://speleotrove.com/decimal/decarith.html


The idea behind it is that 1/0 can be reasonably defined as infinity,
whereas 0/0 is undefined.  You can see that if you disable the exceptions:

>>> c = getcontext()
>>> c.traps[DivisionByZero] = False
>>> c.traps[InvalidOperation] = False
>>> 
>>> Decimal(1) / 0
Decimal('Infinity')
>>> Decimal(0) / 0
Decimal('NaN')
>>>
History
Date User Action Args
2014-08-30 10:17:32skrahsetrecipients: + skrah, rhettinger, facundobatista, mark.dickinson, akima
2014-08-30 10:17:32skrahsetmessageid: <1409393852.44.0.912216664369.issue22306@psf.upfronthosting.co.za>
2014-08-30 10:17:32skrahlinkissue22306 messages
2014-08-30 10:17:32skrahcreate