Re: [Python-3000] lambda

2008-03-26 Thread Lennart Regebro
On Tue, Mar 25, 2008 at 9:42 PM, Olivier Verdier <[EMAIL PROTECTED]> wrote: > repeats over and over again: lambda is just synctactic sugar for a function > definition. Here are suggestion for a new name for lambda, which will much > better describe what it is, namely a *function*. More specificall

Re: [Python-3000] lambda

2008-03-26 Thread Paul Du Bois
> Olivier Verdier wrote: > > Any thoughts about that? Any ideas of other better names than "lambda"? arc uses "fn" On Tue, Mar 25, 2008 at 7:01 PM, Talin <[EMAIL PROTECTED]> wrote: > A while back I created and proposed a patch that would change the syntax > of lambda to be more like a generato

Re: [Python-3000] lambda

2008-03-26 Thread Nick Coghlan
Lennart Regebro wrote: > On Tue, Mar 25, 2008 at 9:42 PM, Olivier Verdier <[EMAIL PROTECTED]> wrote: >> repeats over and over again: lambda is just synctactic sugar for a function >> definition. Here are suggestion for a new name for lambda, which will much >> better describe what it is, namely a *

Re: [Python-3000] lambda

2008-03-26 Thread Lennart Regebro
On Wed, Mar 26, 2008 at 10:21 AM, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Some might say that the ugliness of the current syntax is a point in its > favour ;) Well, it stops people using it. That's good. :) > The code will almost always become more readable and self-documenting if > the fun

Re: [Python-3000] lambda

2008-03-26 Thread Olivier Verdier
There is a dislike of the lambda construction that I just don't understand. Lambda is very practical in all sorts of situations, like: lambda x,y: x+y. I just find the name plain silly, that's all. Perhaps you think that all python programmers or beginners have a LISP background, but that's just no

Re: [Python-3000] lambda

2008-03-26 Thread Lennart Regebro
On Wed, Mar 26, 2008 at 11:32 AM, Olivier Verdier <[EMAIL PROTECTED]> wrote: > Python has a very clear syntax Yup. Except the lambda statement of course. :) (And the clarity of list comprehensions is debateble, but I used them anyway, because they are dead practical, even though it hurts my readab

Re: [Python-3000] [Python-Dev] stable buildbots

2008-03-26 Thread Facundo Batista
2008/3/26, Neal Norwitz <[EMAIL PROTECTED]>: > We need to get the tests for Python to be more stable so we can push > out solid releases. In order to achieve this result, we need tests > that are *100% reliable* and fail _only when there is a problem with +1 > Python_. While we aren't near

Re: [Python-3000] lambda

2008-03-26 Thread skip
Folks, How about we not start a complete rehash of lambda? There was a long thread several months (or a year?) ago about this. At that time no useful replacement appeared and Guido decreed the status quo would remain the status quo. Instead of dreaming up clever lambda replacements, maybe take

Re: [Python-3000] lambda

2008-03-26 Thread Nick Coghlan
Olivier Verdier wrote: > There is a dislike of the lambda construction that I just don't > understand. Lambda is very practical in all sorts of situations, like: > lambda x,y: x+y. I just find the name plain silly, that's all. Perhaps > you think that all python programmers or beginners have a L

Re: [Python-3000] lambda

2008-03-26 Thread Guido van Rossum
What is this discussion doing in python-3000? Please move it to python-ideas. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubs

Re: [Python-3000] Dict literal bytecode

2008-03-26 Thread Alexander Belopolsky
On Tue, Mar 25, 2008 at 5:06 PM, Adam Olsen <[EMAIL PROTECTED]> wrote: > On Tue, Mar 25, 2008 at 2:43 PM, Alexander Belopolsky > > <[EMAIL PROTECTED]> wrote: > > > On Tue, Mar 25, 2008 at 4:26 PM, Adam Olsen <[EMAIL PROTECTED]> wrote: > > > > It does not even have to be a frozenset. A set works

Re: [Python-3000] the release gods are angry at python

2008-03-26 Thread Thomas Heller
Neal Norwitz schrieb: > The next releases of 2.6/3.0 are planned for April 2, just over a week > from now. There is much work that needs to be done. The buildbots > are in a pretty sad state and the gods are seeing too much red. > > http://www.python.org/dev/buildbot/stable/ > http://www.pyt

Re: [Python-3000] the release gods are angry at python

2008-03-26 Thread Thomas Heller
>> test_winsound on this buildbot only passes when I have an open remote desktop >> connection to the (virtual) machine. I have not found any other way to make >> these >> tests pass (I tried 'net stop beep', disabling the sound driver, removing the >> sound driver, disconnecting the hosts sound

Re: [Python-3000] the release gods are angry at python

2008-03-26 Thread Christian Heimes
Georg Brandl schrieb: > Perhaps make it an optional resource? In the py3k branch I've assigned the audio resource to the winsound tests. Only regrtest.py -uall or -uaudio runs the winsound test. Reason: the test sound was freaking out my poor cat. :/ Christian

Re: [Python-3000] [Python-Dev] the release gods are angry at python

2008-03-26 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mar 26, 2008, at 2:21 AM, Neal Norwitz wrote: > The next releases of 2.6/3.0 are planned for April 2, just over a week > from now. There is much work that needs to be done. The buildbots > are in a pretty sad state and the gods are seeing too much

Re: [Python-3000] the release gods are angry at python

2008-03-26 Thread Georg Brandl
Thomas Heller schrieb: > Neal Norwitz schrieb: >> The next releases of 2.6/3.0 are planned for April 2, just over a week >> from now. There is much work that needs to be done. The buildbots >> are in a pretty sad state and the gods are seeing too much red. >> >> http://www.python.org/dev/build

Re: [Python-3000] the release gods are angry at python

2008-03-26 Thread Paul Moore
On 26/03/2008, Thomas Heller <[EMAIL PROTECTED]> wrote: > What I would like to see is a way to disable certain tests on certain > machines; > maybe by setting environment variables? Could this be done by something like the following (completely untested no time at the moment) change to regrte

Re: [Python-3000] [Python-Dev] stable buildbots

2008-03-26 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mar 26, 2008, at 8:14 AM, Facundo Batista wrote: > 2008/3/26, Neal Norwitz <[EMAIL PROTECTED]>: > >> We need to get the tests for Python to be more stable so we can push >> out solid releases. In order to achieve this result, we need tests >> that

Re: [Python-3000] Dict literal bytecode

2008-03-26 Thread Adam Olsen
On Wed, Mar 26, 2008 at 9:18 AM, Alexander Belopolsky <[EMAIL PROTECTED]> wrote: > > On Tue, Mar 25, 2008 at 5:06 PM, Adam Olsen <[EMAIL PROTECTED]> wrote: > > On Tue, Mar 25, 2008 at 2:43 PM, Alexander Belopolsky > > > > <[EMAIL PROTECTED]> wrote: > > > > > On Tue, Mar 25, 2008 at 4:26 PM, Ad

Re: [Python-3000] [Python-Dev] stable buildbots

2008-03-26 Thread Neal Norwitz
On Wed, Mar 26, 2008 at 9:04 AM, Barry Warsaw <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > On Mar 26, 2008, at 8:14 AM, Facundo Batista wrote: > > 2008/3/26, Neal Norwitz <[EMAIL PROTECTED]>: > > > >> We need to get the tests for Python to be more stable s

Re: [Python-3000] the release gods are angry at python

2008-03-26 Thread Thomas Heller
Christian Heimes schrieb: > Georg Brandl schrieb: >> Perhaps make it an optional resource? > > In the py3k branch I've assigned the audio resource to the winsound > tests. Only regrtest.py -uall or -uaudio runs the winsound test. Reason: > the test sound was freaking out my poor cat. :/ I feel wi

Re: [Python-3000] the release gods are angry at python

2008-03-26 Thread Benjamin Peterson
On Wed, Mar 26, 2008 at 1:21 AM, Neal Norwitz <[EMAIL PROTECTED]> wrote: > The next releases of 2.6/3.0 are planned for April 2, just over a week > from now. There is much work that needs to be done. The buildbots > are in a pretty sad state and the gods are seeing too much red. > > http://www.

Re: [Python-3000] the release gods are angry at python

2008-03-26 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mar 26, 2008, at 5:10 PM, Benjamin Peterson wrote: > There are also some backporting issues in that pile. Should those > hold up > betas? (when we get there) Yes, but I would simply release the monthly alpha and push the beta back a month. -

Re: [Python-3000] lambda

2008-03-26 Thread Greg Ewing
If this were ever to change, my preference would be to find a syntax that doesn't use a keyword at all. Lambdas are most useful when the body is extremely short. But in those cases, the word 'lambda' itself is nearly as long as the body, which destroys about half the benefit of using it in the fir

Re: [Python-3000] Dict literal bytecode

2008-03-26 Thread Greg Ewing
Alexander Belopolsky wrote: > 1. Do nothing: dicts are built incrementally, and sets in batch. > 2. Implement batch processing for dict literals. > 3. Implement incremental processing for sets. My thought is that sets are the odd one out here. Tuples are created batchwise because, being immutabl

[Python-3000] Python 3.0 Porting Strategies

2008-03-26 Thread Talin
We had a short discussion about Python 3.0 porting during our bi-weekly Python meeting at Google, and it was suggested that I write up what was discussed. From reading the Python 3000 mailing list over the last several months, it is apparent that there are many different approaches to making t

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-26 Thread Martin v. Löwis
> For new code, however, there is an alternative strategy that doesn't > involve 2to3 at all, which is to write code in the "greatest common > subset" of 2.6 and 3.0. > > As Lennart Regbro pointed out earlier, this common subset is actually > quite large (larger than Guido originally intended,

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-26 Thread Talin
Martin v. Löwis wrote: >> For new code, however, there is an alternative strategy that doesn't >> involve 2to3 at all, which is to write code in the "greatest common >> subset" of 2.6 and 3.0. >> >> As Lennart Regbro pointed out earlier, this common subset is actually >> quite large (larger than