Re: [Python-Dev] test_struct failure on 64 bit platforms

2006-05-31 Thread Neal Norwitz
On 5/31/06, Tim Peters <[EMAIL PROTECTED]> wrote: > > "standard" is a technical word with precise meaning here, and is > defined by the struct module docs, in contrast to "native". It means > whatever they say it means :-) "Portable" may have been a more > intuitive word than "standard" here -- r

Re: [Python-Dev] test_struct failure on 64 bit platforms

2006-05-31 Thread Ronald Oussoren
On Wednesday, May 31, 2006, at 03:06PM, Tim Peters <[EMAIL PROTECTED]> wrote: >> Would someone augment the warnings module to make testing >> more reasonable? > >What's required? I know of two things: > >1. There's no advertised way to save+restore the internal > filter list, or to remove a fi

Re: [Python-Dev] test_struct failure on 64 bit platforms

2006-05-31 Thread Tim Peters
[Bob] >> The warning is correct, and so is the size. Only native formats have >> native sizes; l and i are exactly 4 bytes on all platforms when using >> =, >, <, or !. That's what "std size and alignment" means. [Neal] > Ah, you are correct. I see this is the behaviour in 2.4. Though I > wouldn

Re: [Python-Dev] test_struct failure on 64 bit platforms

2006-05-31 Thread Neal Norwitz
On 5/31/06, Bob Ippolito <[EMAIL PROTECTED]> wrote: > > On May 31, 2006, at 12:49 AM, Neal Norwitz wrote: > > > Bob, > > > > There are a couple of things I don't understand about the new struct. > > Below is a test that fails. > > > > $ ./python ./Lib/test/regrtest.py test_tarfile test_struct > > t

Re: [Python-Dev] test_struct failure on 64 bit platforms

2006-05-31 Thread Bob Ippolito
On May 31, 2006, at 12:49 AM, Neal Norwitz wrote: > Bob, > > There are a couple of things I don't understand about the new struct. > Below is a test that fails. > > $ ./python ./Lib/test/regrtest.py test_tarfile test_struct > test_tarfile > /home/pybot/test-trunk/build/Lib/struct.py:63: Deprecati

[Python-Dev] test_struct failure on 64 bit platforms

2006-05-31 Thread Neal Norwitz
Bob, There are a couple of things I don't understand about the new struct. Below is a test that fails. $ ./python ./Lib/test/regrtest.py test_tarfile test_struct test_tarfile /home/pybot/test-trunk/build/Lib/struct.py:63: DeprecationWarning: 'l' format requires -2147483648 <= number <= 2147483647