[Python-Dev] test_gzip/test_tarfile failure om AMD64

Nick Coghlan ncoghlan at gmail.com
Tue May 30 11:41:23 CEST 2006


Bob Ippolito wrote:
> On May 29, 2006, at 8:00 PM, Tim Peters wrote:
>> We certainly don't want to see two deprecation warnings for a single
>> deprecated behavior.  I suggest eliminating the "struct integer
>> wrapping" warning, mostly because I had no idea what it _meant_
>> before reading the comments in _struct.c  ("wrapping" is used most
>> often in a proxy or delegation context in Python these days).   "'B'
>> format requires 0 <= number <= 255" is perfectly clear all by itself.
> 
> What should it be called instead of wrapping? When it says it's  
> wrapping, it means that it's doing x &= (2 ^ (8 * n)) - 1 to force a  
> number into meeting the expected range.

"integer overflow masking" perhaps?

> Reducing it to one warning instead of two is kinda difficult. Is it  
> worth the trouble?

If there are cases where only one warning or the other triggers, it doesn't 
seem worth the effort to try and suppress one of them when they both trigger.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-Dev mailing list