Message86174
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. |
|
Date |
User |
Action |
Args |
2009-04-19 15:30:20 | mark.dickinson | set | recipients:
+ mark.dickinson, andreas.schawo |
2009-04-19 15:30:20 | mark.dickinson | set | messageid: <1240155020.03.0.0749253776605.issue5463@psf.upfronthosting.co.za> |
2009-04-19 15:30:18 | mark.dickinson | link | issue5463 messages |
2009-04-19 15:30:18 | mark.dickinson | create | |
|