Re: [Python-Dev] Scope object (Re: nonlocals() function?)

2010-04-06 Thread Cesare Di Mauro
2010/4/6 Antoine Pitrou solip...@pitrou.net Greg Ewing greg.ewing at canterbury.ac.nz writes: Maybe it would be better to deprecate globals() and locals() and replace them with another function called something like scope(). It is useful to distinguish between globals (i.e.,

Re: [Python-Dev] Scope object (Re: nonlocals() function?)

2010-04-06 Thread Greg Ewing
Reid Kleckner wrote: If I remember correctly, the exec statement is going away in py3k, and calling exec() with one argument can modify the local scope. I've been kind of wondering what the deal is with exec in py3. I always thought the reason for making exec a statement was so that locals

Re: [Python-Dev] python compiler

2010-04-06 Thread Greg Ewing
Maciej Fijalkowski wrote: Except none of the things mentioned above is actually a Python compiler. No, but they grapple with many of the same issues that a Python compiler would face, and it would be informative to see how they tackle those issues. If you want to advance the state of the art,

[Python-Dev] Code coverage metrics

2010-04-06 Thread anatoly techtonik
Where can I find public reports with Python tests code coverage? -- anatoly t. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] python compiler

2010-04-06 Thread David Cournapeau
On Mon, Apr 5, 2010 at 11:54 PM, will...@ufpa.br wrote: for a college project, I proposed to create a compiler for python. I've read something about it and maybe I saw that made a bad choice. I hear everyone's opinion respond. Depending on your taste, you may want to tackle something like a

Re: [Python-Dev] Code coverage metrics

2010-04-06 Thread Senthil Kumaran
On Tue, Apr 06, 2010 at 12:40:35PM +0300, anatoly techtonik wrote: Where can I find public reports with Python tests code coverage? Here: http://coverage.livinglogic.de/ -- Senthil ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] Scope object (Re: nonlocals() function?)

2010-04-06 Thread Cesare Di Mauro
2010/4/6 Greg Ewing greg.ew...@canterbury.ac.nz Cesare Di Mauro wrote: It will certainly. There's MUCH that can be optimized to let CPython squeeze more performance from static analysis (even a gross one) on locals. But can the existing locals() function be implemented in the face of

[Python-Dev] -Wd switch

2010-04-06 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Recently we added -Wd flags to buildbots. I was wondering about the effect of it. documentation doesn't help. I could study the code, but I guess other people can have the very same question and I think the answer should be in the archives,

Re: [Python-Dev] -Wd switch

2010-04-06 Thread Larry Hastings
Jesus Cea wrote: Recently we added -Wd flags to buildbots. I was wondering about the effect of it. documentation doesn't help. I could study the code, but I guess other people can have the very same question and I think the answer should be in the archives, somewhere. I studied the code ;)

[Python-Dev] Python and compilers

2010-04-06 Thread willian
First, thank you for all opnion. Each one was considered. I think the better question would be: I have to develop a project that involves compilers, and being a fan of Python, I thought about making a compiler for it (most basic idea involving Pythin and compilers). But I saw that I can use what I

Re: [Python-Dev] Scope object (Re: nonlocals() function?)

2010-04-06 Thread Tobias Ivarsson
On Tue, Apr 6, 2010 at 11:13 AM, Greg Ewing greg.ew...@canterbury.ac.nzwrote: Reid Kleckner wrote: If I remember correctly, the exec statement is going away in py3k, and calling exec() with one argument can modify the local scope. I've been kind of wondering what the deal is with exec in

Re: [Python-Dev] Python and compilers

2010-04-06 Thread Michael Foord
On 06/04/2010 12:44, will...@ufpa.br wrote: First, thank you for all opnion. Each one was considered. I think the better question would be: I have to develop a project that involves compilers, and being a fan of Python, I thought about making a compiler for it (most basic idea involving Pythin

Re: [Python-Dev] Code coverage metrics

2010-04-06 Thread Antoine Pitrou
Senthil Kumaran orsenthil at gmail.com writes: On Tue, Apr 06, 2010 at 12:40:35PM +0300, anatoly techtonik wrote: Where can I find public reports with Python tests code coverage? Here: http://coverage.livinglogic.de/ The fact that the log shows some test failures isn't very comforting.

Re: [Python-Dev] -Wd switch

2010-04-06 Thread Brett Cannon
On Tue, Apr 6, 2010 at 04:19, Larry Hastings la...@hastings.org wrote: Jesus Cea wrote: Recently we added -Wd flags to buildbots. I was wondering about the effect of it. documentation doesn't help. I could study the code, but I guess other people can have the very same question and I think

Re: [Python-Dev] Code coverage metrics

2010-04-06 Thread anatoly techtonik
On Tue, Apr 6, 2010 at 7:31 PM, Georg Brandl g.bra...@gmx.net wrote: Where can I find public reports with Python tests code coverage? Here: http://coverage.livinglogic.de/ Thank you. What is the status of getting these stats on python.org? Wouldn't status imply that there is a plan to do

Re: [Python-Dev] Code coverage metrics

2010-04-06 Thread C. Titus Brown
On Tue, Apr 06, 2010 at 10:36:14PM +0300, anatoly techtonik wrote: On Tue, Apr 6, 2010 at 7:31 PM, Georg Brandl g.bra...@gmx.net wrote: Where can I find public reports with Python tests code coverage? Here: http://coverage.livinglogic.de/ Thank you. What is the status of getting

Re: [Python-Dev] Code coverage metrics

2010-04-06 Thread Brett Cannon
On Tue, Apr 6, 2010 at 12:42, C. Titus Brown c...@msu.edu wrote: On Tue, Apr 06, 2010 at 10:36:14PM +0300, anatoly techtonik wrote: On Tue, Apr 6, 2010 at 7:31 PM, Georg Brandl g.bra...@gmx.net wrote: Where can I find public reports with Python tests code coverage? Here:

Re: [Python-Dev] quot;-Wdquot; switch

2010-04-06 Thread Brett Cannon
On Tue, Apr 6, 2010 at 11:41, Antoine Pitrou solip...@pitrou.net wrote: Brett Cannon brett at python.org writes: Nope, you got it right. A little bit of documentation is in 2.7: http://docs.python.org/dev/library/warnings.html#updating-code-for- It is a bit disturbing, though, that

Re: [Python-Dev] Python and compilers

2010-04-06 Thread Greg Ewing
Michael Foord wrote: *However*, a project that would be interesting - and that I have wanted to do in order to program microcontrollers with *very* small memory address spaces [1] - would be to compile a static subset of Python down to C. That would be an excellent project -- if the result

Re: [Python-Dev] Python and compilers

2010-04-06 Thread Martin v. Löwis
will...@ufpa.br wrote: First, thank you for all opnion. Each one was considered. I think the better question would be: I have to develop a project that involves compilers, and being a fan of Python, I thought about making a compiler for it (most basic idea involving Pythin and compilers). But

Re: [Python-Dev] Python and compilers

2010-04-06 Thread Michael Foord
On 06/04/2010 23:31, Martin v. Löwis wrote: will...@ufpa.br wrote: First, thank you for all opnion. Each one was considered. I think the better question would be: I have to develop a project that involves compilers, and being a fan of Python, I thought about making a compiler for it (most

Re: [Python-Dev] Python and compilers

2010-04-06 Thread Michael Foord
On 06/04/2010 23:34, Michael Foord wrote: On 06/04/2010 23:31, Martin v. Löwis wrote: will...@ufpa.br wrote: First, thank you for all opnion. Each one was considered. I think the better question would be: I have to develop a project that involves compilers, and being a fan of Python, I thought

Re: [Python-Dev] stabilizing for a release

2010-04-06 Thread Martin v. Löwis
Benjamin Peterson wrote: I propose that we freeze the trunk except for fixes for the buildbots. Thoughts? Freezing sounds fine with me. Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] Scope object (Re: nonlocals() function?)

2010-04-06 Thread Steven D'Aprano
On Tue, 6 Apr 2010 04:25:08 pm Cesare Di Mauro wrote: It will certainly. There's MUCH that can be optimized to let CPython squeeze more performance from static analysis (even a gross one) on locals. [...] They are just dummy examples, but can make it clear how far optimizations can go with

Re: [Python-Dev] iso-2022 and issue 7472: question for the experts

2010-04-06 Thread Martin v. Löwis
Can someone (Steve Turnbull?) confirm or refute my analysis? Refute, see http://bugs.python.org/issue804885 ISO-2022 input will be 7-bit, and the except will not trigger This conclusion is false: 1. it is 7-bit py unichr(913).encode(iso-2022-jp) '\x1b$B!\x1b(B' 2. the except *will*

Re: [Python-Dev] PEP 3147 working implementation

2010-04-06 Thread Barry Warsaw
On Apr 01, 2010, at 04:12 PM, Barry Warsaw wrote: I now have a working implementation of PEP 3147 which passes all the existing, and new, tests. I'm sure there's still work to do, but I think the branch is in good enough shape to start getting some feedback from python-dev. Thanks to Antoine

Re: [Python-Dev] iso-2022 and issue 7472: question for the experts

2010-04-06 Thread R. David Murray
On Wed, 07 Apr 2010 02:18:13 +0200, =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?= mar...@v.loewis.de wrote: Can someone (Steve Turnbull?) confirm or refute my analysis? Refute, see http://bugs.python.org/issue804885 ISO-2022 input will be 7-bit, and the except will not trigger This

Re: [Python-Dev] PEP 3147 working implementation

2010-04-06 Thread Benjamin Peterson
2010/4/6 Barry Warsaw ba...@python.org: On Apr 01, 2010, at 04:12 PM, Barry Warsaw wrote: I now have a working implementation of PEP 3147 which passes all the existing, and new, tests.  I'm sure there's still work to do, but I think the branch is in good enough shape to start getting some