➜

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.

作者 mark.dickinson
收信人 benjamin.peterson, bob.ippolito, collinwinter, georg.brandl, giampaolo.rodola, jafo, mark.dickinson, nnorwitz, piman
日期 2009-01-15.17:23:08
SpamBayes Score 0.026146112
Marked as misclassified 否
Message-id <1232040190.08.0.394220368091.issue1530559@psf.upfronthosting.co.za>
In-reply-to
内容
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'
历史
日期 用户 动作 参数
2009-01-15 17:23:10mark.dickinson修改recipients: + mark.dickinson, nnorwitz, georg.brandl, collinwinter, jafo, bob.ippolito, piman, giampaolo.rodola, benjamin.peterson
2009-01-15 17:23:10mark.dickinson修改messageid: <1232040190.08.0.394220368091.issue1530559@psf.upfronthosting.co.za>
2009-01-15 17:23:09mark.dickinson链接issue1530559 messages
2009-01-15 17:23:08mark.dickinson创建