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 benjamin.peterson, bob.ippolito, collinwinter, georg.brandl, giampaolo.rodola, jafo, mark.dickinson, nnorwitz, piman
Date 2009-01-15.17:39:14
SpamBayes Score 6.214214e-05
Marked as misclassified No
Message-id <1232041155.31.0.828580312001.issue1530559@psf.upfronthosting.co.za>
In-reply-to
Content
Some more strange results:

Python 2.6.1+ (release26-maint:68613, Jan 15 2009, 15:19:54) 
[GCC 4.0.1 (Apple Inc. build 5490)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from struct import pack
>>> from decimal import Decimal
>>> pack('l', Decimal('3.14'))
'\x03\x00\x00\x00'
>>> pack('L', Decimal('3.14'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for &: 'Decimal' and 'long'
History
Date User Action Args
2009-01-15 17:39:15mark.dickinsonsetrecipients: + mark.dickinson, nnorwitz, georg.brandl, collinwinter, jafo, bob.ippolito, piman, giampaolo.rodola, benjamin.peterson
2009-01-15 17:39:15mark.dickinsonsetmessageid: <1232041155.31.0.828580312001.issue1530559@psf.upfronthosting.co.za>
2009-01-15 17:39:14mark.dickinsonlinkissue1530559 messages
2009-01-15 17:39:14mark.dickinsoncreate