Author mark.dickinson
Recipients andreas.schawo, mark.dickinson
Date 2009-04-19.15:30:18
SpamBayes Score 4.99888e-08
Marked as misclassified No
Message-id <1240155020.03.0.0749253776605.issue5463@psf.upfronthosting.co.za>
In-reply-to
Content
Hmm.  In 3.0 and 2.7, I get:

>>> from struct import pack
>>> pack('L', 123.0)
sys:1: DeprecationWarning: integer argument expected, got float
b'{\x00\x00\x00'

So it looks like we already changed py3k to get rid of the 
DeprecationWarning.

I think the idea was that eventually *only* integers would be accepted 
for the integer format codes.  So pack('L', 123.0) should ideally raise 
TypeError.  If we're not going to do that, we should at least put the 
DeprecationWarning back in, but it seems better to actually go ahead 
with the deprecation.
History
Date User Action Args
2009-04-19 15:30:20mark.dickinsonsetrecipients: + mark.dickinson, andreas.schawo
2009-04-19 15:30:20mark.dickinsonsetmessageid: <1240155020.03.0.0749253776605.issue5463@psf.upfronthosting.co.za>
2009-04-19 15:30:18mark.dickinsonlinkissue5463 messages
2009-04-19 15:30:18mark.dickinsoncreate