[Python-Dev] Tracker archeology

2009-02-10 Thread Daniel (ajax) Diniz
Hi all, For the past two days I've been doing some housekeeping *cough*spamming*cough* on the tracker, mostly on ancient and/or easy bugs. So far, ten bugs have been closed (thanks Antoine, Barry, Benjamin, Guilherme, Martin and Raymond). I nominated some other bugs (below) for closing and added

Re: [Python-Dev] Tracker archeology

2009-02-10 Thread Facundo Batista
2009/2/10 Daniel (ajax) Diniz aja...@gmail.com: If anyone is interested in being added as nosy for any category of bugs, let me know and I'll do that as I scan the tracker. Anything related to Decimal, add me. Thanks! -- .Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr:

Re: [Python-Dev] Tracker archeology

2009-02-10 Thread Guido van Rossum
Thanks Daniel! This kind of work is never fun but very much needed and I'm very glad you did it. A round of applause!! On Tue, Feb 10, 2009 at 5:23 AM, Daniel (ajax) Diniz aja...@gmail.com wrote: Hi all, For the past two days I've been doing some housekeeping *cough*spamming*cough* on the

[Python-Dev] Expression optimizations

2009-02-10 Thread Cesare Di Mauro
In peephole.c I noticed some expression optimizations: /* not a is b -- a is not b not a in b -- a not in b not a is not b -- a is b not a not in b -- a in

Re: [Python-Dev] Expression optimizations

2009-02-10 Thread Daniel Stutzbach
On Tue, Feb 10, 2009 at 10:24 AM, Cesare Di Mauro cesare.dima...@a-tono.com wrote: Could it be applyable to other operations as well? So, if I wrote: c = not(a b) the compiler and/or peephole optimizer can generate bytecodes instructions which, instead, execute the following operation: c

Re: [Python-Dev] Expression optimizations

2009-02-10 Thread Antoine Pitrou
Cesare Di Mauro cesare.dimauro at a-tono.com writes: Could it be applyable to other operations as well? So, if I wrote: c = not(a b) the compiler and/or peephole optimizer can generate bytecodes instructions which, instead, execute the following operation: c = a = b Is it right?

Re: [Python-Dev] Expression optimizations

2009-02-10 Thread Steve Holden
Daniel Stutzbach wrote: On Tue, Feb 10, 2009 at 10:24 AM, Cesare Di Mauro cesare.dima...@a-tono.com mailto:cesare.dima...@a-tono.com wrote: Could it be applyable to other operations as well? So, if I wrote: c = not(a b) the compiler and/or peephole optimizer can generate

Re: [Python-Dev] Expression optimizations

2009-02-10 Thread Daniel Stutzbach
On Tue, Feb 10, 2009 at 11:16 AM, Steve Holden st...@holdenweb.com wrote: That's true, but the same *could* be said about the existing optimizations for objects that define their own __contains__. No, because there isn't a __not_contains__, so you cannot define the inverse operation

Re: [Python-Dev] Expression optimizations

2009-02-10 Thread Antoine Pitrou
Steve Holden steve at holdenweb.com writes: That's true, but the same *could* be said about the existing optimizations for objects that define their own __contains__. No, because there is no such thing as __not_contains__. Regards Antoine. ___

Re: [Python-Dev] Tracker archeology

2009-02-10 Thread Brett Cannon
On Tue, Feb 10, 2009 at 05:23, Daniel (ajax) Diniz aja...@gmail.com wrote: Hi all, For the past two days I've been doing some housekeeping *cough*spamming*cough* on the tracker, mostly on ancient and/or easy bugs. So far, ten bugs have been closed (thanks Antoine, Barry, Benjamin,

Re: [Python-Dev] Expression optimizations

2009-02-10 Thread Raymond Hettinger
- Original Message - From: Cesare Di Mauro cesare.dima...@a-tono.com To: Python-Dev python-dev@python.org Sent: Tuesday, February 10, 2009 8:24 AM Subject: [Python-Dev] Expression optimizations In peephole.c I noticed some expression optimizations: /* not a is b -- a is not b

Re: [Python-Dev] Tracker archeology

2009-02-10 Thread Benjamin Peterson
On Tue, Feb 10, 2009 at 8:23 AM, Daniel (ajax) Diniz aja...@gmail.com wrote: If anyone is interested in being added as nosy for any category of bugs, let me know and I'll do that as I scan the tracker. Adding/assigning to me on 2to3 bugs is fine, but usually I notice stuff I'm interested in as

Re: [Python-Dev] Expression optimizations

2009-02-10 Thread Cesare Di Mauro
On Mar, Feb 10, 2009 at 05:38 PM, Daniel Stutzbach wrote: On Tue, Feb 10, 2009 at 10:24 AM, Cesare Di Mauro cesare.dima...@a-tono.com wrote: Could it be applyable to other operations as well? So, if I wrote: c = not(a b) the compiler and/or peephole optimizer can generate bytecodes

Re: [Python-Dev] Expression optimizations

2009-02-10 Thread Daniel Stutzbach
On Tue, Feb 10, 2009 at 2:36 PM, Cesare Di Mauro cesare.dima...@a-tono.comwrote: OK, so I can make assumptions only for built-in types. Yes, but even there you have to be careful of odd corner-cases, such as: nan = float('nan') nan nan False nan = nan False -- Daniel Stutzbach, Ph.D.

Re: [Python-Dev] Expression optimizations

2009-02-10 Thread Cesare Di Mauro
On Mar, Feb 10, 2009 06:24 PM, Daniel Stutzbach wrote: On Tue, Feb 10, 2009 at 11:16 AM, Steve Holden st...@holdenweb.com wrote: That's true, but the same *could* be said about the existing optimizations for objects that define their own __contains__. No, because there isn't a

Re: [Python-Dev] Expression optimizations

2009-02-10 Thread Cesare Di Mauro
On Mar, Feb 10, 2009 08:15 PM, Raymond Hettinger wrote: - Original Message - From: Cesare Di Mauro cesare.dima...@a-tono.com To: Python-Dev python-dev@python.org Sent: Tuesday, February 10, 2009 8:24 AM Subject: [Python-Dev] Expression optimizations In peephole.c I noticed some

Re: [Python-Dev] Expression optimizations

2009-02-10 Thread Cesare Di Mauro
On Mar, Feb 10, 2009 09:42PM, Daniel Stutzbach wrote: On Tue, Feb 10, 2009 at 2:36 PM, Cesare Di Mauro cesare.dima...@a-tono.comwrote: OK, so I can make assumptions only for built-in types. Yes, but even there you have to be careful of odd corner-cases, such as: nan = float('nan') nan

Re: [Python-Dev] Expression optimizations

2009-02-10 Thread Dino Viehland
And slightly unrelated, but just showing how bizarre floats are: x = 1e6 y = x/x cmp(y, y) 0 cmp(x/x, x/x) -1 Yeah object identity checks! From: python-dev-bounces+dinov=microsoft@python.org [mailto:python-dev-bounces+dinov=microsoft@python.org] On Behalf Of Daniel Stutzbach

Re: [Python-Dev] Expression optimizations

2009-02-10 Thread Cesare Di Mauro
It's bizarre enough, since I have got a different result (with Python 2.6.1, 32 bit): x = 1e6 y = x/x x inf y nan cmp(y, y) 0 cmp(x/x, x/x) 1 :D Cesare On Mar, Feb 10, 2009 10:02PM, Dino Viehland wrote: And slightly unrelated, but just showing how bizarre floats are: x = 1e6

Re: [Python-Dev] Expression optimizations

2009-02-10 Thread Dino Viehland
I think it's comparing based upon object identity so it may be a little non-deterministic: x= 1e66 y = x/x z = x/x cmp(y, z) 1 cmp(z, y) -1 But I may have accidently run that on IronPython though where we're assigning ids differently :) -Original Message- From: Cesare Di

Re: [Python-Dev] Expression optimizations

2009-02-10 Thread Raymond Hettinger
[Cesare Di Mauro] I'm playing with the virtual machine and I have some ideas about possibile optimizations that could be applyed. But I need to verify them, so understanding what is possible and what is not, is a primary goal for me. The best way to understand what is possible is to

Re: [Python-Dev] Tracker archeology

2009-02-10 Thread Brett Cannon
On Tue, Feb 10, 2009 at 05:23, Daniel (ajax) Diniz aja...@gmail.com wrote: [SNIP] Iff this kind of Bug-Day-ish work is desirable, doesn't disrupt real work and people agree the workflow would be better, I'd like to have developer rights in the tracker, as per Antoine's suggestion. FWIW, I

Re: [Python-Dev] Tracker archeology

2009-02-10 Thread Tarek Ziadé
On Tue, Feb 10, 2009 at 2:23 PM, Daniel (ajax) Diniz aja...@gmail.com wrote: If anyone is interested in being added as nosy for any category of bugs, let me know and I'll do that as I scan the tracker. I'll take Distutils related issues, Thank you Tarek

Re: [Python-Dev] Expression optimizations

2009-02-10 Thread Cesare Di Mauro
On Mar, Feb 10, 2009 10:20PM, Raymond Hettinger wrote: [Cesare Di Mauro] I'm playing with the virtual machine and I have some ideas about possibile optimizations that could be applyed. But I need to verify them, so understanding what is possible and what is not, is a primary goal for me.

Re: [Python-Dev] Tracker archeology

2009-02-10 Thread Daniel (ajax) Diniz
Brett Cannon wrote: OK, three enthusiastic votes to give them is plenty for me. You should have the Developer role now, Daniel. Let me know if I screwed up at all in switchng the role on for you. Thanks a lot! Looks like it worked fine :) Let me try the new thing, then: warnings and import

Re: [Python-Dev] Tracker archeology

2009-02-10 Thread Stephen Thorne
On 2009-02-10, Tarek Ziadé wrote: On Tue, Feb 10, 2009 at 2:23 PM, Daniel (ajax) Diniz aja...@gmail.com wrote: If anyone is interested in being added as nosy for any category of bugs, let me know and I'll do that as I scan the tracker. I'll take Distutils related issues, If you could

[Python-Dev] Python-acceleration instructions on ARM

2009-02-10 Thread Benjamin Schwartz
Dear Python developers, Introduction: I am writing from the perspective of Sugar Labs [1], which produces Sugar, a free software project written almost entirely in Python. Sugar is designed to run on small, resource-constrained computers. So far those computers have been mostly x86, but it

Re: [Python-Dev] Python-acceleration instructions on ARM

2009-02-10 Thread Brett Cannon
On Tue, Feb 10, 2009 at 18:45, Benjamin Schwartz bmsch...@fas.harvard.eduwrote: Dear Python developers, Introduction: I am writing from the perspective of Sugar Labs [1], which produces Sugar, a free software project written almost entirely in Python. Sugar is designed to run on small,

Re: [Python-Dev] Python-acceleration instructions on ARM

2009-02-10 Thread Benjamin M. Schwartz
Brett Cannon wrote: On Tue, Feb 10, 2009 at 18:45, Benjamin Schwartz bmsch...@fas.harvard.eduwrote: ... According to ARM [4]: Jazelle RCT can be used to significantly reduce the code bloat associated with AOT and JIT compilation, making AOT technology viable on mass-market devices. It

[Python-Dev] Bug tracker house cleaning.

2009-02-10 Thread Raymond Hettinger
ISTM, that when closing duplicate bug reports, both should reference one another so that the combined threads don't get lost. Also, assigning bugs to people who haven't asked to handle them doesn't seem like it is actually cleaning-up anything. If something is assigned to someone, I usually

Re: [Python-Dev] Bug tracker house cleaning.

2009-02-10 Thread Guido van Rossum
On Tue, Feb 10, 2009 at 8:57 PM, Raymond Hettinger pyt...@rcn.com wrote: ISTM, that when closing duplicate bug reports, both should reference one another so that the combined threads don't get lost. This suggest a feature request (which Google's internal tracker has): when a bug is closed as

Re: [Python-Dev] Daily documentation builds

2009-02-10 Thread Neal Norwitz
I ran 2.6, 3.0, and 3.1 manually. 2.7 should get picked up on the next run. The problem is that regrtest.py -R hangs from time to time which caused the machine to run out of memory. Does anyone else have regrtest.py -R hang for them? Some tests were disabled to try to prevent the problem, but

Re: [Python-Dev] Bug tracker house cleaning.

2009-02-10 Thread Daniel (ajax) Diniz
Hi Raymond, Thanks a lot for the feedback. I actually am more than a bit concerned about the effect of my wholesale edits on the signal to noise ration. Any clarifications are most welcome (and I'm open to change methods and immediate goals) :) Raymond Hettinger wrote: ISTM, that when closing

Re: [Python-Dev] Tracker archeology

2009-02-10 Thread Daniel (ajax) Diniz
Brett Cannon wrote: Warnings and import for me. Done. Tomorrow I'll see what I can triage/test in those. Talking about Bug Days, I see lots of easy bugs, some with outdated patches. Is there any plan of doing a Bug Day around PyCon time? Well, the sprints at PyCon are Bug Days themselves

Re: [Python-Dev] Tracker archeology

2009-02-10 Thread Daniel (ajax) Diniz
Tarek Ziadé wrote: I'll take Distutils related issues, Done. Since Akira Kitada is helping with many distutils issues, I'll skip looking at them for now. Ping me if you need tests or simple patches :) Regards, Daniel ___ Python-Dev mailing list

Re: [Python-Dev] Tracker archeology

2009-02-10 Thread Daniel (ajax) Diniz
Benjamin Peterson wrote: Adding/assigning to me on 2to3 bugs is fine, but usually I notice stuff I'm interested in as it rises to the top. Done, found a couple more. There are also some -3 warnings open, if that interests you :) Thanks for the support, I only saw it was a +10 now :D Cheers,

Re: [Python-Dev] Python-acceleration instructions on ARM

2009-02-10 Thread Martin v. Löwis
ARM is specifically claiming that these instructions can be used to accelerate Python interpretation. Wow, really? One of the links below mention that? I'm skeptical though that you can really produce speedups for CPython, though; ISTM that they added Python only as a front-end

Re: [Python-Dev] Python-acceleration instructions on ARM

2009-02-10 Thread Martin v. Löwis
- fast instance variables: likewise, with R10 holding the this pointer. Not applicable to Python, since there is no byte code for instance variable access. Follow-up: this could be used to JIT LOAD_CONST efficiently, though, putting co_consts into R10. Regards, Martin