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 <>
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
>>> struct.pack('Q', 3.1)
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: <>
2009-01-15 17:23:09mark.dickinsonlinkissue1530559 messages
2009-01-15 17:23:08mark.dickinsoncreate