Re: [Python-Dev] Exception chaining and generator finalisation

2010-08-01 Thread Greg Ewing
Antoine Pitrou wrote: It only happens if you call close() explicitly: Well, that's only because the exception is being ignored and you're not getting a traceback at all. If you arrange to get a traceback, the same thing happens. import traceback as tb def g(): try: try:

Re: [Python-Dev] Exception chaining and generator finalisation

2010-08-01 Thread Greg Ewing
Nick Coghlan wrote: A toy example, that isn't obviously broken at first glance, but in fact fails when close() is called: Okay, you've convinced me. I'll consider it to be correct behaviour and update my expected yield-from test results accordingly. -- Greg

Re: [Python-Dev] No response to posts

2010-08-01 Thread Mark Lawrence
On 01/08/2010 02:00, Brian Curtin wrote: On Sat, Jul 31, 2010 at 19:48, Mark Lawrencebreamore...@yahoo.co.ukwrote: Hi all, I have been wading through outstanding issues today and have noticed that there are several where there has been no response at all to the initial post. Failing that,

[Python-Dev] Yield-From Implementation Updated for Python 3

2010-08-01 Thread Greg Ewing
I have updated my prototype yield-from implementation to work with Python 3.1.2. I've also fixed a small bug that was affecting one of the corner cases concerning exceptions thrown into a subgenerator. Interested parties can obtain it here:

[Python-Dev] [RELEASED] Python 3.2 alpha 1

2010-08-01 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm happy to announce the first alpha preview release of Python 3.2. Python 3.2 is a continuation of the efforts to improve and stabilize the Python 3.x line. Since the final release of Python 2.7, the 2.x

Re: [Python-Dev] No response to posts

2010-08-01 Thread Nick Coghlan
On Sun, Aug 1, 2010 at 5:41 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: I plucked this figure out of the air thinking that if an issue was going to drop under the radar, this would be the most likely time.  I was considering a worst case scenario where several core triage people are at a

Re: [Python-Dev] No response to posts

2010-08-01 Thread Éric Araujo
Perhaps just another number to track in the weekly bug summary? *puts bug person hat on* I made the same suggestion to Ezio, so +1 I’ve just created a public query named “Reports without replies”, you should be able to add it to your queries list, or a tracker admin could decide to add it to

Re: [Python-Dev] Yield-From Implementation Updated for Python 3

2010-08-01 Thread Kevin Jacobs jac...@bioinformed.com
On Sun, Aug 1, 2010 at 3:54 AM, Greg Ewing greg.ew...@canterbury.ac.nzwrote: I have updated my prototype yield-from implementation to work with Python 3.1.2. My work is primarily on the management and analysis of huge genomics datasets. I use Python generators extensively and intensively to

Re: [Python-Dev] proto-pep: plugin proposal (for unittest)

2010-08-01 Thread Ronald Oussoren
On 31 Jul, 2010, at 13:57, Michael Foord wrote: On 31/07/2010 12:46, Michael Foord wrote: [snip...] If PEP 376 goes ahead then we could keep the user plugin I meant keep the user config file. Speaking of which... Your documentation says it's named ~/unittest.cfg, could you make this a

Re: [Python-Dev] proto-pep: plugin proposal (for unittest)

2010-08-01 Thread Éric Araujo
Speaking of which... Your documentation says it's named ~/unittest.cfg, could you make this a file in the user base (that is, the prefix where 'setup.py install --user' will install files)? Putting .pydistutils.cfg .pypirc .unittest2.cfg .idlerc and possibly other in the user home directory

Re: [Python-Dev] proto-pep: plugin proposal (for unittest)

2010-08-01 Thread R. David Murray
On Sun, 01 Aug 2010 17:22:55 +0200, mer...@netwok.org wrote: Speaking of which... Your documentation says it's named ~/unittest.cfg, could you make this a file in the user base (that is, the prefix where 'setup.py install --user' will install files)? Putting .pydistutils.cfg .pypirc

Re: [Python-Dev] No response to posts

2010-08-01 Thread R. David Murray
On Sun, 01 Aug 2010 21:28:05 +1000, Nick Coghlan ncogh...@gmail.com wrote: On Sun, Aug 1, 2010 at 5:41 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: I plucked this figure out of the air thinking that if an issue was going to drop under the radar, this would be the most likely time. I was

Re: [Python-Dev] Yield-From Implementation Updated for Python 3

2010-08-01 Thread P.J. Eby
At 08:49 AM 8/1/2010 -0400, Kevin Jacobs jac...@bioinformed.com wrote: On Sun, Aug 1, 2010 at 3:54 AM, Greg Ewing mailto:greg.ew...@canterbury.ac.nzgreg.ew...@canterbury.ac.nz wrote: I have updated my prototype yield-from implementation to work with Python 3.1.2. My work is primarily on the

Re: [Python-Dev] proto-pep: plugin proposal (for unittest)

2010-08-01 Thread Michael Foord
On 01/08/2010 18:38, R. David Murray wrote: On Sun, 01 Aug 2010 17:22:55 +0200,mer...@netwok.org wrote: Speaking of which... Your documentation says it's named ~/unittest.cfg, could you make this a file in the user base (that is, the prefix where 'setup.py install --user' will install

Re: [Python-Dev] proto-pep: plugin proposal (for unittest)

2010-08-01 Thread Ronald Oussoren
On 1 Aug, 2010, at 17:22, Éric Araujo wrote: Speaking of which... Your documentation says it's named ~/unittest.cfg, could you make this a file in the user base (that is, the prefix where 'setup.py install --user' will install files)? Putting .pydistutils.cfg .pypirc .unittest2.cfg .idlerc

Re: [Python-Dev] No response to posts

2010-08-01 Thread Ezio Melotti
On 01/08/2010 20.43, R. David Murray wrote: On Sun, 01 Aug 2010 21:28:05 +1000, Nick Coghlanncogh...@gmail.com wrote: On Sun, Aug 1, 2010 at 5:41 PM, Mark Lawrencebreamore...@yahoo.co.uk wrote: I plucked this figure out of the air thinking that if an issue was going to drop under the radar,

[Python-Dev] PEP 376 proposed changes for basic plugins support

2010-08-01 Thread Tarek Ziadé
Hello, Here's a proposal to extend PEP 376 to support a basic plugins feature -- you should read PEP 376 before reading this mail It's basically Phillip's entry points, but with an activation flag, and a per-user config file. = adding a PLUGINS file = A new file called 'PLUGINS' is added to

Re: [Python-Dev] PEP 376 proposed changes for basic plugins support

2010-08-01 Thread Nick Coghlan
On Mon, Aug 2, 2010 at 6:37 AM, Tarek Ziadé ziade.ta...@gmail.com wrote: Hello, Here's a proposal to extend PEP 376 to support a basic plugins feature -- you should read PEP 376 before reading this mail It's basically Phillip's entry points, but with an activation flag, and a per-user

Re: [Python-Dev] Metadata: charset (was: PEP 376 proposed changes for basic plugins support)

2010-08-01 Thread Oleg Broytman
On Sun, Aug 01, 2010 at 10:37:47PM +0200, Tarek Ziad? wrote: The file is a CSV file In what encoding (charset)? I quickly skimmed over PEPs 262, 241, 314 and 376, but didn't encountered any mention of the words encoding or charset. Documentation for the csv module also doesn't provide any

Re: [Python-Dev] PEP 376 proposed changes for basic plugins support

2010-08-01 Thread Tarek Ziadé
On Sun, Aug 1, 2010 at 11:55 PM, Nick Coghlan ncogh...@gmail.com wrote: ... Is dealing with name conflicts left up to the application? When an application iterates on the plugins that are supposely built for it, it will probably expect a single type of object. For instance unitest2 will want

Re: [Python-Dev] Metadata: charset (was: PEP 376 proposed changes for basic plugins support)

2010-08-01 Thread Tarek Ziadé
On Sun, Aug 1, 2010 at 11:58 PM, Oleg Broytman p...@phd.pp.ru wrote: On Sun, Aug 01, 2010 at 10:37:47PM +0200, Tarek Ziad? wrote: The file is a CSV file   In what encoding (charset)? I quickly skimmed over PEPs 262, 241, 314 and 376, but didn't encountered any mention of the words encoding or

Re: [Python-Dev] Metadata: charset

2010-08-01 Thread Oleg Broytman
On Mon, Aug 02, 2010 at 12:11:06AM +0200, Tarek Ziad? wrote: On Sun, Aug 1, 2010 at 11:58 PM, Oleg Broytman p...@phd.pp.ru wrote: On Sun, Aug 01, 2010 at 10:37:47PM +0200, Tarek Ziad? wrote: The file is a CSV file   In what encoding (charset)? I quickly skimmed over PEPs 262, 241, 314

Re: [Python-Dev] PEP 376 proposed changes for basic plugins support

2010-08-01 Thread Michael Foord
On 01/08/2010 21:37, Tarek Ziadé wrote: Hello, Here's a proposal to extend PEP 376 to support a basic plugins feature -- you should read PEP 376 before reading this mail It's basically Phillip's entry points, but with an activation flag, and a per-user config file. = adding a PLUGINS file =

Re: [Python-Dev] No response to posts

2010-08-01 Thread Terry Reedy
On 8/1/2010 7:44 AM, Éric Araujo wrote: +1 On a prebuilt search This is not as easy as it seems. A nosy count of 1 misses posts where someone added themself as nosy without saying anything, waiting for someone else to answer (and maybe no one ever did). A message count of 1 misses posts where

Re: [Python-Dev] Is it intentional that sys.__debug__ = 1 isillegal in Python 2.7?

2010-08-01 Thread Terry Reedy
On 7/31/2010 5:02 PM, Guido van Rossum wrote: But yes, the docs should clarify that *any* use of __*__ names, in *any* context, that does not follow explicitly documented use, is subject to breakage without warning. http://bugs.python.org/issue9451 Strengthen __*__ system name warning My

Re: [Python-Dev] No response to posts

2010-08-01 Thread Ron Adam
On 08/01/2010 06:14 PM, Terry Reedy wrote: On 8/1/2010 7:44 AM, Éric Araujo wrote: +1 On a prebuilt search This is not as easy as it seems. A nosy count of 1 misses posts where someone added themself as nosy without saying anything, waiting for someone else to answer (and maybe no one ever

Re: [Python-Dev] PEP 376 proposed changes for basic plugins support

2010-08-01 Thread Tarek Ziadé
On Mon, Aug 2, 2010 at 1:11 AM, Michael Foord fuzzy...@voidspace.org.uk wrote: This seems fine; I mean it isn't written directly by humans or intended to be read directly by humans I guess. :-) (Users will specify plugins in the setup metadata and this will be written on install by distutils2

Re: [Python-Dev] PEP 376 proposed changes for basic plugins support

2010-08-01 Thread Michael Foord
On 02/08/2010 00:46, Tarek Ziadé wrote: [snip...] I don't think that unittest would use a distutils2 (or pkgutil) supplied API for activation. But the discovery API you will use might just simply filter out disabled plugins. I did consider asking this but thought it was a silly

Re: [Python-Dev] PEP 376 proposed changes for basic plugins support

2010-08-01 Thread Tarek Ziadé
On Mon, Aug 2, 2010 at 1:56 AM, Michael Foord fuzzy...@voidspace.org.uk wrote: On 02/08/2010 00:46, Tarek Ziadé wrote: [snip...] I don't think that unittest would use a distutils2 (or pkgutil) supplied API for activation. But the discovery API you will use might just simply filter out

Re: [Python-Dev] pdb mini-sprint report and questions

2010-08-01 Thread Ilya Sandler
Hello, I'm the submitter of the original patch and would like to help with it if I can. One issue that's not yet closed is #7245, which adds a (very nice IMO) feature: when you press Ctrl-C while the program being debugged runs, you will not get a traceback but execution is suspended, and you

Re: [Python-Dev] PEP 376 proposed changes for basic plugins support

2010-08-01 Thread Michael Foord
On 02/08/2010 01:03, Tarek Ziadé wrote: On Mon, Aug 2, 2010 at 1:56 AM, Michael Foordfuzzy...@voidspace.org.uk wrote: On 02/08/2010 00:46, Tarek Ziadé wrote: [snip...] I don't think that unittest would use a distutils2 (or pkgutil) supplied API for activation.

Re: [Python-Dev] PEP 376 proposed changes for basic plugins support

2010-08-01 Thread P.J. Eby
At 02:03 AM 8/2/2010 +0200, Tarek Ziadé wrote: but then we would be back to the problem mentioned about entry points: installing projects can implicitly add a plugin and activate it, and break existing applications that iterate over entry points without further configuration. So being able to

Re: [Python-Dev] No response to posts

2010-08-01 Thread Benjamin Peterson
2010/7/31 Éric Araujo wins...@netwok.org: Good call. Alternative idea: Have a new status “unread” to make searching easier for bug people. Or a predefined custom search for nosy_count == 1. Please, let's stop messing with the tracker for everything. I think the current set up works reasonably

Re: [Python-Dev] Is it intentional that sys.__debug__ = 1 is illegal in Python 2.7?

2010-08-01 Thread Benjamin Peterson
2010/7/30 Barry Warsaw ba...@python.org: It looks like Benjamin's change in r67171 was the relevant diff. The reason behind this was to make __debug__ assignment consistent with that of other reserved names. For example, x.None = 3 raised and thus, so should x.__debug__ = 3. -- Regards,

Re: [Python-Dev] [RELEASED] Python 3.2 alpha 1

2010-08-01 Thread Benjamin Peterson
Hey, Georg! Congrats on your first release! 2010/8/1 Georg Brandl ge...@python.org: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm happy to announce the first alpha preview release of Python 3.2. Python 3.2 is a continuation of the efforts to

Re: [Python-Dev] Yield-From Implementation Updated for Python 3

2010-08-01 Thread Guido van Rossum
On Sun, Aug 1, 2010 at 11:16 AM, P.J. Eby p...@telecommunity.com wrote: Just so you know, you don't need to wait for this to be added to Python in order to have such a construct; it just won't have the extra syntax sugar.  See the sample code I posted here using a @From.container decorator, and

Re: [Python-Dev] proto-pep: plugin proposal (for unittest)

2010-08-01 Thread Glyph Lefkowitz
On Aug 1, 2010, at 3:52 PM, Ronald Oussoren wrote: On 1 Aug, 2010, at 17:22, Éric Araujo wrote: Speaking of which... Your documentation says it's named ~/unittest.cfg, could you make this a file in the user base (that is, the prefix where 'setup.py install --user' will install files)?