Re: [Python-Dev] [Python-checkins] cpython (2.7): Issue #10276: test_zlib checks that inputs of 2 GB are handled correctly by

2011-05-03 Thread Nadeem Vawda
On Tue, May 3, 2011 at 10:38 PM, Victor Stinner wrote: > I don't want to check OverflowError: the test is supposed to compute the > checksum of a buffer of 0x7FFF bytes, to check crc32() and > adler32(). 0x7FFF is the biggest size supported by these functions > (zlib doesn't use Py_ssize_t

Re: [Python-Dev] [Python-checkins] cpython (2.7): Issue #10276: test_zlib checks that inputs of 2 GB are handled correctly by

2011-05-03 Thread Victor Stinner
Le mardi 03 mai 2011 à 16:22 +0200, Nadeem Vawda a écrit : > On Tue, May 3, 2011 at 3:19 PM, victor.stinner > wrote: > > +# Issue #10276 - check that inputs of 2 GB are handled correctly. > > +# Be aware of issues #1202, #8650, #8651 and #10276 > > +class ChecksumBigBufferTestCase(unittest.TestCas

Re: [Python-Dev] [Python-checkins] cpython (2.7): Issue #10276: test_zlib checks that inputs of 2 GB are handled correctly by

2011-05-03 Thread Antoine Pitrou
Hello, On Tue, 3 May 2011 16:22:27 +0200 Nadeem Vawda wrote: > > As an aside, in this sort of situation is it better to just go and > commit a fix myself, or is raising it on the mailing list first the > right way to do things? Raising it on the mailing-list makes it serve as a kind of post-co

Re: [Python-Dev] Windows 2000 Support

2011-05-03 Thread Brian Curtin
On Mon, May 2, 2011 at 19:39, Brian Curtin wrote: > On Mon, May 2, 2011 at 16:14, "Martin v. Löwis" wrote: > >> Am 01.05.2011 22:51, schrieb Brian Curtin: >> > I'm currently writing a post about the process of removing OS/2 and VMS >> > support and thought about a discussion of Windows 2000 some

Re: [Python-Dev] Raise OSError or RuntimeError in the OS module?

2011-05-03 Thread Georg Brandl
On 02.05.2011 12:06, Victor Stinner wrote: > Hi, > > I introduced recently the signal.pthread_sigmask() function (issue #8407). > pthread_sigmask() (the C function) returns an error code using errno codes. I > choosed to raise a RuntimeError using this error code, but I am not sure that > Runti

Re: [Python-Dev] [Python-checkins] cpython (2.7): Issue #10276: test_zlib checks that inputs of 2 GB are handled correctly by

2011-05-03 Thread Nadeem Vawda
On Tue, May 3, 2011 at 3:19 PM, victor.stinner wrote: > +# Issue #10276 - check that inputs of 2 GB are handled correctly. > +# Be aware of issues #1202, #8650, #8651 and #10276 > +class ChecksumBigBufferTestCase(unittest.TestCase): > +    int_max = 0x7FFF > + > +    @unittest.skipUnless(mmap,