Re: [Python-Dev] PEP 3147 working implementation

2010-04-06 Thread Benjamin Peterson
2010/4/6 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 p

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?= 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 conclusion

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] Python and compilers

2010-04-06 Thread Nick Coghlan
Greg Ewing wrote: > 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 exc

Re: [Python-Dev] stabilizing for a release

2010-04-06 Thread Benjamin Peterson
Let's do it. Please no commits to the trunk which are not aimed at fixing the current buildbot failures. Thank you! 2010/4/6 "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. > >

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] 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

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 Unsu

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

2010-04-06 Thread R. David Murray
A long time ago (in a galaxy far far...no, wrong show) Er, as I was saying, a long time ago Barry applied a patch to email that went more or less like this: ndex: email/Encoders.py === --- email/Encoders.py (revision 35918) +++ ema

[Python-Dev] stabilizing for a release

2010-04-06 Thread Benjamin Peterson
I propose that we freeze the trunk except for fixes for the buildbots. Thoughts? -- Regards, Benjamin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/optio

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 though

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 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).

Re: [Python-Dev] Code coverage metrics

2010-04-06 Thread Walter Doerwald
On 06.04.2010 11:50, Senthil Kumaran wrote: 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/ And the script that generates that output is available from the cheeseshop:

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 w

Re: [Python-Dev] "-Wd" switch

2010-04-06 Thread Brett Cannon
On Tue, Apr 6, 2010 at 11:41, Antoine Pitrou wrote: > Brett Cannon 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 "-Wdefault" isn't t

Re: [Python-Dev] Code coverage metrics

2010-04-06 Thread Brett Cannon
On Tue, Apr 6, 2010 at 12:42, C. Titus Brown 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 wrote: > > > > > Where can I find public reports with Python tests code coverage? > > >>> > > >>> Here: > > >>> > > >>> h

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 wrote: > > > Where can I find public reports with Python tests code coverage? > >>> > >>> Here: > >>> > >>> http://coverage.livinglogic.de/ > >> > >> Thank you. What is the status

Re: [Python-Dev] Code coverage metrics

2010-04-06 Thread anatoly techtonik
On Tue, Apr 6, 2010 at 7:31 PM, Georg Brandl 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 pl

Re: [Python-Dev] "-Wd" switch

2010-04-06 Thread Antoine Pitrou
Brett Cannon 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 "-Wdefault" isn't the default setting. How could that oddity be solved? Regards An

Re: [Python-Dev] "-Wd" switch

2010-04-06 Thread Brett Cannon
On Tue, Apr 6, 2010 at 04:19, Larry Hastings 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 the

Re: [Python-Dev] Code coverage metrics

2010-04-06 Thread Georg Brandl
Am 06.04.2010 13:50, schrieb anatoly techtonik: > On Tue, Apr 6, 2010 at 12:50 PM, Senthil Kumaran 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?

Re: [Python-Dev] Code coverage metrics

2010-04-06 Thread Antoine Pitrou
Senthil Kumaran 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

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 an

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 wrote: > 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 tho

Re: [Python-Dev] Code coverage metrics

2010-04-06 Thread anatoly techtonik
On Tue, Apr 6, 2010 at 12:50 PM, Senthil Kumaran 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? -- anatoly t.

[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] "-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] "-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, somewher

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

2010-04-06 Thread Cesare Di Mauro
2010/4/6 Greg Ewing > 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 such optimisations? >

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 http://mail.pytho

Re: [Python-Dev] python compiler

2010-04-06 Thread David Cournapeau
On Mon, Apr 5, 2010 at 11:54 PM, 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 static analyse

[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: http://mail.python.org/mailman/options/python-dev/archive%40

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

2010-04-06 Thread Greg Ewing
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 such optimisations? If it can, then a "locals view" obje

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

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 opt