Re: [Python-Dev] Proposing PEP 386 for addition

2009-12-11 Thread Nick Coghlan
Darren Dale wrote: On Thu, Dec 10, 2009 at 8:54 AM, Antoine Pitrou solip...@pitrou.net wrote: Tarek Ziadé ziade.tarek at gmail.com writes: Do you have a better suggestion ? I was thinking about StandardVersion but Standard doesn't really express what we want to achieve here I think, I think

Re: [Python-Dev] Unittest/doctest formatting differences in 2.7a1?

2009-12-11 Thread Nick Coghlan
Benjamin Peterson wrote: 2009/12/10 Lennart Regebro rege...@gmail.com: On Thu, Dec 10, 2009 at 20:25, Terry Reedy tjre...@udel.edu wrote: Since the intent of IGNORE_EXCEPTION_DETAIL is to make doctests immune to implementation version specific changes, it seems to me that extending its

Re: [Python-Dev] Proposing PEP 386 for addition

2009-12-11 Thread Tarek Ziadé
On Fri, Dec 11, 2009 at 6:15 AM, Ben Finney ben+pyt...@benfinney.id.au wrote: [..] No, the PEP document itself should either contain the questions and answers, or contain a link to the discussion along with a brief summary of what it was about and a explicit statement of its outcome. Ok then,

Re: [Python-Dev] Proposing PEP 386 for addition

2009-12-11 Thread Tarek Ziadé
On Fri, Dec 11, 2009 at 11:23 AM, Nick Coghlan ncogh...@gmail.com wrote: Darren Dale wrote: On Thu, Dec 10, 2009 at 8:54 AM, Antoine Pitrou solip...@pitrou.net wrote: Tarek Ziadé ziade.tarek at gmail.com writes: Do you have a better suggestion ? I was thinking about StandardVersion but

[Python-Dev] Summary of Python tracker Issues

2009-12-11 Thread Python tracker
ACTIVITY SUMMARY (12/04/09 - 12/11/09) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue number. Do NOT respond to this message. 2526 open (+34) / 16775 closed (+11) / 19301 total (+45) Open issues with patches: 1007

[Python-Dev] Splitting something into two steps produces different behavior from doing it in one fell swoop in Python 2.6.2

2009-12-11 Thread Roy Hyunjin Han
While debugging a network algorithm in Python 2.6.2, I encountered some strange behavior and was wondering whether it has to do with some sort of code optimization that Python does behind the scenes. After initialization: defaultdict(type 'set', {1: set([1])}) Popping and updating

Re: [Python-Dev] Splitting something into two steps produces different behavior from doing it in one fell swoop in Python 2.6.2

2009-12-11 Thread John Arbash Meinel
Roy Hyunjin Han wrote: While debugging a network algorithm in Python 2.6.2, I encountered some strange behavior and was wondering whether it has to do with some sort of code optimization that Python does behind the scenes. After initialization: defaultdict(type 'set', {1:

Re: [Python-Dev] Splitting something into two steps produces different behavior from doing it in one fell swoop in Python 2.6.2

2009-12-11 Thread MRAB
John Arbash Meinel wrote: Roy Hyunjin Han wrote: While debugging a network algorithm in Python 2.6.2, I encountered some strange behavior and was wondering whether it has to do with some sort of code optimization that Python does behind the scenes. After initialization:

Re: [Python-Dev] Unittest/doctest formatting differences in 2.7a1?

2009-12-11 Thread Lennart Regebro
On Thu, Dec 10, 2009 at 21:24, Benjamin Peterson benja...@python.org wrote: 2009/12/10 Lennart Regebro rege...@gmail.com: On Thu, Dec 10, 2009 at 20:25, Terry Reedy tjre...@udel.edu wrote: Since the intent of IGNORE_EXCEPTION_DETAIL is to make doctests immune to implementation version

Re: [Python-Dev] Unittest/doctest formatting differences in 2.7a1?

2009-12-11 Thread exarkun
On 9 Dec, 06:09 pm, fuzzy...@voidspace.org.uk wrote: On 09/12/2009 18:02, exar...@twistedmatrix.com wrote: On 05:11 pm, lrege...@jarn.com wrote: On Wed, Dec 9, 2009 at 17:34, Michael Foord fuzzy...@voidspace.org.uk wrote: Can you be more specific? Only with an insane amount of work. I'll

Re: [Python-Dev] Unittest/doctest formatting differences in 2.7a1?

2009-12-11 Thread Lennart Regebro
On Fri, Dec 11, 2009 at 21:36, exar...@twistedmatrix.com wrote: Certainly.  Perhaps Zope would like to add something to the community builders page. The Zope Component Architecture would be nice to test like that. Much of the rest of Zope needs massaging between python versions, so that may

Re: [Python-Dev] Splitting something into two steps produces different behavior from doing it in one fell swoop in Python 2.6.2

2009-12-11 Thread Roy Hyunjin Han
On Fri, Dec 11, 2009 at 2:43 PM, MRAB pyt...@mrabarnett.plus.com wrote: John Arbash Meinel wrote: Roy Hyunjin Han wrote: While debugging a network algorithm in Python 2.6.2, I encountered some strange behavior and was wondering whether it has to do with some sort of code optimization that

Re: [Python-Dev] Unittest/doctest formatting differences in 2.7a1?

2009-12-11 Thread Nick Coghlan
Lennart Regebro wrote: On Thu, Dec 10, 2009 at 21:24, Benjamin Peterson benja...@python.org wrote: 2009/12/10 Lennart Regebro rege...@gmail.com: On Thu, Dec 10, 2009 at 20:25, Terry Reedy tjre...@udel.edu wrote: Since the intent of IGNORE_EXCEPTION_DETAIL is to make doctests immune to

Re: [Python-Dev] Splitting something into two steps produces different behavior from doing it in one fell swoop in Python 2.6.2

2009-12-11 Thread Nick Coghlan
Roy Hyunjin Han wrote: On Fri, Dec 11, 2009 at 2:43 PM, MRAB pyt...@mrabarnett.plus.com wrote: John Arbash Meinel wrote: y[1].update(y.pop(1)) is going to be evaluating y[1] before it evaluates y.pop(1). Which means that it has the original set returned, which is then removed by y.pop, and

Re: [Python-Dev] Unittest/doctest formatting differences in 2.7a1?

2009-12-11 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lennart Regebro wrote: On Fri, Dec 11, 2009 at 21:36, exar...@twistedmatrix.com wrote: Certainly. Perhaps Zope would like to add something to the community builders page. The Zope Component Architecture would be nice to test like that. Much