[Python-Dev] Packing and unpacking integers

2008-07-05 Thread Josiah Carlson
A few years ago (yes, it's been that long), I proposed adding a new format code to struct that would pack integers as strings, similar to the 's' format code. In particular, struct.pack('>60G', v) would be a 60-byte big-endian unsigned integer as a string. The feature request is http://bugs.pytho

Re: [Python-Dev] Community buildbots and Python release quality metrics

2008-07-05 Thread Grig Gheorghiu
On Thu, Jun 26, 2008 at 8:18 AM, <[EMAIL PROTECTED]> wrote: > Today on planetpython.org, Doug Hellman announced the June issue of Python > magazine. The cover story this month is about Pybots, "the fantastic > automation system that has been put in place to make sure new releases of > Python soft

Re: [Python-Dev] bytearray and array.array are not thread-safe

2008-07-05 Thread Martin v. Löwis
> Short story: bytearray and array.array by construction allow user code to > reallocate their internal memory buffer. But a raw pointer to the said buffer > can also be obtained by another thread, and used after releasing the GIL (for > CPU-intensive operations like compression). As a consequence,

[Python-Dev] bytearray and array.array are not thread-safe

2008-07-05 Thread Antoine Pitrou
Hello, Short story: bytearray and array.array by construction allow user code to reallocate their internal memory buffer. But a raw pointer to the said buffer can also be obtained by another thread, and used after releasing the GIL (for CPU-intensive operations like compression). As a consequence

Re: [Python-Dev] [Python-3000] Second betas tomorrow

2008-07-05 Thread Gregory P. Smith
On Tue, Jul 1, 2008 at 8:29 PM, Barry Warsaw <[EMAIL PROTECTED]> wrote: > On Jul 1, 2008, at 10:42 PM, Benjamin Peterson wrote: > >> On Tue, Jul 1, 2008 at 8:44 PM, Barry Warsaw <[EMAIL PROTECTED]> wrote: >> >>> On Jul 1, 2008, at 7:27 PM, Brett Cannon wrote: >>> Is a Google Calendar kep

Re: [Python-Dev] C99 code in the Python core?

2008-07-05 Thread Martin v. Löwis
> (1) When is it okay to use C99 code in the Python core? More particularly, > is it considered acceptable to use widely-implemented library functions that > are specified in C99 but not ANSI C, or widely-implemented features that > are new to C99? [C99 is also ANSI C, IIUC. ANSI has adopted ISO/

Re: [Python-Dev] C99 code in the Python core?

2008-07-05 Thread Matthieu Brucher
2008/7/5 Mark Dickinson <[EMAIL PROTECTED]>: > I have a general question and a specific question. First the general one: > > (1) When is it okay to use C99 code in the Python core? More particularly, > is it considered acceptable to use widely-implemented library functions that > are specified in

[Python-Dev] C99 code in the Python core?

2008-07-05 Thread Mark Dickinson
I have a general question and a specific question. First the general one: (1) When is it okay to use C99 code in the Python core? More particularly, is it considered acceptable to use widely-implemented library functions that are specified in C99 but not ANSI C, or widely-implemented features th