Author skrah
Recipients johnwalker, serhiy.storchaka, skrah, steven.daprano
Date 2015-12-23.21:30:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20151223212954.GA3308@bytereef.org>
In-reply-to <1450904482.41.0.647995975391.issue25928@psf.upfronthosting.co.za>
Content
On Wed, Dec 23, 2015 at 09:01:22PM +0000, John Walker wrote:
> Stefan, _int is a slot in Lib/_pydecimal.py. It should be defined on python 3.5 and tip, unsure about other versions.
> 
> Python 3.5.1 (default, Dec  7 2015, 12:58:09) 
> [GCC 5.2.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from decimal import Decimal
> >>> Decimal("100.00")
> Decimal('100.00')
> >>> Decimal("100.00")._int
> '10000'

That should only happen if the C version did not build for some reason:

Python 3.6.0a0 (default:323c10701e5d, Dec 14 2015, 14:28:41) 
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from decimal import Decimal
>>> Decimal("100.00")._int
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'decimal.Decimal' object has no attribute '_int'
>>>
History
Date User Action Args
2015-12-23 21:30:05skrahsetrecipients: + skrah, steven.daprano, serhiy.storchaka, johnwalker
2015-12-23 21:30:05skrahlinkissue25928 messages
2015-12-23 21:30:05skrahcreate