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:23:08
SpamBayes Score 0.026146112
Marked as misclassified No
Message-id <1232040190.08.0.394220368091.issue1530559@psf.upfronthosting.co.za>
In-reply-to
Content
Retargeting, now that 2.5 is in security-fix-only mode.

Bob, can you clarify what *should* be happening in 2.6, 2.7, 3.0 and 3.1 
for things like:

struct.pack('L', 2009.1)
struct.pack('L', Decimal('3.14')) 

?

It also seems that 'L' and 'Q behave differently.  For example, with 2.7:

>>> struct.pack('L', 3.1)
sys:1: DeprecationWarning: integer argument expected, got float
'\x03\x00\x00\x00'
>>> struct.pack('Q', 3.1)
'\x03\x00\x00\x00\x00\x00\x00\x00'
History
Date User Action Args
2009-01-15 17:23:10mark.dickinsonsetrecipients: + mark.dickinson, nnorwitz, georg.brandl, collinwinter, jafo, bob.ippolito, piman, giampaolo.rodola, benjamin.peterson
2009-01-15 17:23:10mark.dickinsonsetmessageid: <1232040190.08.0.394220368091.issue1530559@psf.upfronthosting.co.za>
2009-01-15 17:23:09mark.dickinsonlinkissue1530559 messages
2009-01-15 17:23:08mark.dickinsoncreate