[Python-Dev] Unexpected behaviour in compileall

2011-11-02 Thread Vinay Sajip
I just started getting errors in my PEP 404 / pythonv branch, but they don't at first glance appear related to the functionality of this branch. What I'm seeing is that during installation, some of the .pyc/.pyo files written by compileall have mode 600 rather than the expected 644, with the

Re: [Python-Dev] Unexpected behaviour in compileall

2011-11-02 Thread Charles-François Natali
2011/11/2 Vinay Sajip vinay_sa...@yahoo.co.uk: I just started getting errors in my PEP 404 / pythonv branch, but they don't at first glance appear related to the functionality of this branch. What I'm seeing is that during installation, some of the .pyc/.pyo files written by compileall have

Re: [Python-Dev] Unexpected behaviour in compileall

2011-11-02 Thread Vinay Sajip
Charles-François Natali neologix at free.fr writes: It's a consequence of http://hg.python.org/cpython/rev/740baff4f169. I'll fix that. Should a new issue be opened (or #13303 re-opened) pending this fix? Regards, Vinay Sajip ___ Python-Dev

Re: [Python-Dev] Unexpected behaviour in compileall

2011-11-02 Thread Brett Cannon
On Wed, Nov 2, 2011 at 09:13, Vinay Sajip vinay_sa...@yahoo.co.uk wrote: Charles-François Natali neologix at free.fr writes: It's a consequence of http://hg.python.org/cpython/rev/740baff4f169. I'll fix that. Should a new issue be opened (or #13303 re-opened) pending this fix? Re-open

Re: [Python-Dev] Code cleanups in stable branches?

2011-11-02 Thread Raymond Hettinger
On Nov 1, 2011, at 1:31 PM, Barry Warsaw wrote: On Oct 31, 2011, at 06:23 PM, Éric Araujo wrote: I thought that patches that clean up code but don’t fix actual bugs were not done in stable branches. Has this changed? I hope not. Sure, if they fix actual bugs, that's fine, but as MvL

[Python-Dev] ints not overflowing into longs?

2011-11-02 Thread Derek Shockey
I just found an unexpected behavior and I'm wondering if it is a bug. In my 2.7.2 interpreter on OS X, built and installed via MacPorts, it appears that integers are not correctly overflowing into longs and instead are yielding bizarre results. I can only reproduce this when using the exponent

Re: [Python-Dev] ints not overflowing into longs?

2011-11-02 Thread Guido van Rossum
Apparently Macports is still using a buggy compiler. I reported a similar issue before and got this reply from Ned Delly: Thanks for the pointer. That looks like a duplicate of Issue11149 (and Issue12701). Another manifestation of this was reported in Issue13061 which also originated from

Re: [Python-Dev] ints not overflowing into longs?

2011-11-02 Thread Derek Shockey
Thank you, I narrowed it down from there and got a properly working build. I gather the problem is that in Xcode 4.2 the default compiler was changed to clang, but the version of clang bundled with it has a bug that breaks overflows in intobject.c. In case anyone else hits this, I fixed this in