Message79906
| 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' |
|