Re: [Python-Dev] objections to renaming enumobject.h/c in 3.4?

2013-08-03 Thread Eli Bendersky
On Fri, Aug 2, 2013 at 11:20 PM, Raymond Hettinger wrote: > > On Aug 2, 2013, at 8:47 PM, Eli Bendersky wrote: > > I was looking around the Objects directory and noticed that we have > enumobject.h/c with the enumobject structure for "enumerate" and "reversed". > This is somewhat confusing now wi

Re: [Python-Dev] objections to renaming enumobject.h/c in 3.4?

2013-08-03 Thread Nick Coghlan
On 3 August 2013 22:39, Eli Bendersky wrote: > On Fri, Aug 2, 2013 at 11:20 PM, Raymond Hettinger > wrote: >> >> On Aug 2, 2013, at 8:47 PM, Eli Bendersky wrote: >> >> I was looking around the Objects directory and noticed that we have >> enumobject.h/c with the enumobject structure for "enumera

Re: [Python-Dev] unittest.TestSuite holding references to unittest.TestCase instances too long

2013-08-03 Thread Matt McClure
Michael Foord voidspace.org.uk> writes: > On 2 Aug 2013, at 19:19, Antoine Pitrou pitrou.net> wrote: > > The patch is basically ready for commit, except for a possible doc > > addition, no? > > Looks to be the case, reading the patch it looks fine. I'm currently on holiday until Monday. > If anyo

Re: [Python-Dev] unittest.TestSuite holding references to unittest.TestCase instances too long

2013-08-03 Thread R. David Murray
On Sat, 03 Aug 2013 10:27:30 -0400, Matt McClure wrote: > Michael Foord voidspace.org.uk> writes: > > On 2 Aug 2013, at 19:19, Antoine Pitrou pitrou.net> wrote: > > > The patch is basically ready for commit, except for a possible doc > > > addition, no? > > > > Looks to be the case, reading the

Re: [Python-Dev] unittest.TestSuite holding references to unittest.TestCase instances too long

2013-08-03 Thread Matt McClure
On Aug 3, 2013, at 12:07 PM, "R. David Murray" wrote: > Thanks. Please post your patch to the issue, it will get lost here. I'm trying to register, but I'm not receiving a confirmation email to complete the registration. -- http://matthewlmcclure.com http://about.mapmyfitness.com _

Re: [Python-Dev] unittest.TestSuite holding references to unittest.TestCase instances too long

2013-08-03 Thread Michael Foord
Sent from my iPhone On 3 Aug 2013, at 19:07, "R. David Murray" wrote: > On Sat, 03 Aug 2013 10:27:30 -0400, Matt McClure > wrote: >> Michael Foord voidspace.org.uk> writes: >>> On 2 Aug 2013, at 19:19, Antoine Pitrou pitrou.net> wrote: The patch is basically ready for commit, except f

Re: [Python-Dev] objections to renaming enumobject.h/c in 3.4?

2013-08-03 Thread Alexander Belopolsky
On Sat, Aug 3, 2013 at 9:17 AM, Nick Coghlan wrote: > Yep, this is an area where laziness is definitely a virtue - if work > is only needed to handle a hypothetical future change, then it can be > deferred and handled as part of that change. :) > I would say that even renaming the files can wait

[Python-Dev] Allowing to run certain regression tests in subprocesses

2013-08-03 Thread Eli Bendersky
Hi All, Today the issue of cross-test global env dependencies showed its ugly head again for me. I recall a previous discussion (http://mail.python.org/pipermail/python-dev/2013-January/123409.html) but there were many more over the years. The core problem is that some tests modify the global env

Re: [Python-Dev] Allowing to run certain regression tests in subprocesses

2013-08-03 Thread Eli Bendersky
On Sat, Aug 3, 2013 at 4:36 PM, Eli Bendersky wrote: > Hi All, > > Today the issue of cross-test global env dependencies showed its ugly > head again for me. I recall a previous discussion > (http://mail.python.org/pipermail/python-dev/2013-January/123409.html) > but there were many more over the

Re: [Python-Dev] PEP 8 modernisation

2013-08-03 Thread Alexander Belopolsky
On Thu, Aug 1, 2013 at 8:44 AM, Nick Coghlan wrote: > > 9. Explicit guideline not to assign lambdas to names (use def, that's > what it's for) Would you consider changing the formatting in the recommended example from def f(x): return 2*x to def f(x): return 2*x ? What is the modern vie

Re: [Python-Dev] Allowing to run certain regression tests in subprocesses

2013-08-03 Thread R. David Murray
On Sat, 03 Aug 2013 16:47:37 -0700, Eli Bendersky wrote: > On Sat, Aug 3, 2013 at 4:36 PM, Eli Bendersky wrote: > > Hi All, > > > > Today the issue of cross-test global env dependencies showed its ugly > > head again for me. I recall a previous discussion > > (http://mail.python.org/pipermail/pyt

Re: [Python-Dev] Allowing to run certain regression tests in subprocesses

2013-08-03 Thread Nick Coghlan
On 4 Aug 2013 09:43, "Eli Bendersky" wrote: > > Hi All, > > Today the issue of cross-test global env dependencies showed its ugly > head again for me. I recall a previous discussion > (http://mail.python.org/pipermail/python-dev/2013-January/123409.html) > but there were many more over the years.

Re: [Python-Dev] Allowing to run certain regression tests in subprocesses

2013-08-03 Thread Eli Bendersky
On Sat, Aug 3, 2013 at 6:59 PM, Nick Coghlan wrote: > > On 4 Aug 2013 09:43, "Eli Bendersky" wrote: >> >> Hi All, >> >> Today the issue of cross-test global env dependencies showed its ugly >> head again for me. I recall a previous discussion >> (http://mail.python.org/pipermail/python-dev/2013-J

[Python-Dev] Fwd: Allowing to run certain regression tests in subprocesses

2013-08-03 Thread Eli Bendersky
On Sat, Aug 3, 2013 at 6:57 PM, R. David Murray wrote: > On Sat, 03 Aug 2013 16:47:37 -0700, Eli Bendersky wrote: >> On Sat, Aug 3, 2013 at 4:36 PM, Eli Bendersky wrote: >> > Hi All, >> > >> > Today the issue of cross-test global env dependencies showed its ugly >> > head again for me. I recall

Re: [Python-Dev] Allowing to run certain regression tests in subprocesses

2013-08-03 Thread Nick Coghlan
On 4 Aug 2013 12:03, "Eli Bendersky" wrote: > > On Sat, Aug 3, 2013 at 6:59 PM, Nick Coghlan wrote: > > > > On 4 Aug 2013 09:43, "Eli Bendersky" wrote: > >> > >> Hi All, > >> > >> Today the issue of cross-test global env dependencies showed its ugly > >> head again for me. I recall a previous di

Re: [Python-Dev] PEP 8 modernisation

2013-08-03 Thread Nick Coghlan
On 4 Aug 2013 11:30, "Alexander Belopolsky" wrote: > > > On Thu, Aug 1, 2013 at 8:44 AM, Nick Coghlan wrote: > > > > 9. Explicit guideline not to assign lambdas to names (use def, that's > > what it's for) > > > Would you consider changing the formatting in the recommended example from > > def f(

Re: [Python-Dev] PEP 8 modernisation

2013-08-03 Thread Steven D'Aprano
On 02/08/13 06:52, Alexander Belopolsky wrote: On Thu, Aug 1, 2013 at 4:29 PM, Terry Reedy wrote: def f(x): return 2*x f = lambda x: 2*x Am I the only one who finds the second line above much more readable than the first? The def statement is not intended to be written in one line. The r

[Python-Dev] [RELEASED] Python 3.4.0a1

2013-08-03 Thread Larry Hastings
On behalf of the Python development team, I'm pleased to announce the first alpha release of Python 3.4. This is a preview release, and its use is not recommended for production settings. Python 3.4 includes a range of improvements of the 3.x series, including hundreds of small improvements an

Re: [Python-Dev] [RELEASED] Python 3.4.0a1

2013-08-03 Thread Larry Hastings
On 08/03/2013 11:22 PM, Larry Hastings wrote: * PEP 435, a standardized "enum" module * PEP 442, improved semantics for object finalization * PEP 443, adding single-dispatch generic functions to the standard library * PEP 445, a new C API for implementing custom memory allocators Whoops, look