Re: [Python-3000] lambda

2008-03-27 Thread Greg Ewing
Leif Walsh wrote: > On Wed, Mar 26, 2008 at 7:34 PM, Greg Ewing <[EMAIL PROTECTED]> wrote: > >> x, y => x + y > > If something like this is adopted, I plead that := is chosen. No, that would be massively confusing, since := is an assignment operator in some languages, notably Pascal. The => i

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mar 27, 2008, at 2:09 AM, 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 pointe

[Python-3000] Help on builtin keywords

2008-03-27 Thread Anand Balachandran Pillai
Hi, I recently noticed that the "help" function behaves rather unhelpfully when one tries it on builtin keywords, as opposed to functions. For example, taking the much abused "lambda", a newbie might try to do the following to get more enlightened about lambda. >>> help(lambda) Fi

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Charles Merriam
On Wed, Mar 26, 2008 at 9:33 PM, Talin <[EMAIL PROTECTED]> 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 sub

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Nick Coghlan
Charles Merriam wrote: > On Wed, Mar 26, 2008 at 9:33 PM, Talin <[EMAIL PROTECTED]> 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 poin

Re: [Python-3000] Help on builtin keywords

2008-03-27 Thread Christian Heimes
Anand Balachandran Pillai schrieb: > I did not check if there is a bug on this, but if the situation can be fixed > in Py3k, it would be great. I suggest that "help()" either gives a single-line > help for keywords also, or gracefully die down with a proper error string, > telling " is a Python key

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Christian Heimes
Charles Merriam schrieb: > On Wed, Mar 26, 2008 at 9:33 PM, Talin <[EMAIL PROTECTED]> 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 p

Re: [Python-3000] lambda

2008-03-27 Thread Lennart Regebro
On Thu, Mar 27, 2008 at 12:34 AM, Greg Ewing <[EMAIL PROTECTED]> wrote: >x, y => x + y I know this is off topic and that we should stop, but this is actually quite nice. Remember that one for Python 4000. ;) -- Lennart Regebro: Zope and Plone consulting. http://www.colliberty.com/ +33 661 58

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Lennart Regebro
On Thu, Mar 27, 2008 at 5:33 AM, Talin <[EMAIL PROTECTED]> wrote: > -- A document describing the "common subset", and how to write programs > in it. This doesn't have to be a complete standalone manual, just an > addendum to the regular Python docs explaining what things to avoid and > how to g

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

2008-03-27 Thread skip
>> 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/ >> htt

Re: [Python-3000] lambda

2008-03-27 Thread Olivier Verdier
On 26/03/2008, Nick Coghlan <[EMAIL PROTECTED]> wrote: > > I think if I come across a keyword I didn't know in a language I was > learning, I'd look it up to find out what it means. Yes but it doesn't look like a keyword, does it? It looks like a letter of the greek alphabet to me. :-) The first

Re: [Python-3000] lambda

2008-03-27 Thread Neil Toronto
Olivier Verdier wrote: > On 26/03/2008, *Nick Coghlan* <[EMAIL PROTECTED] > Lambda calculus is a > well established field of mathematics, so it's a perfectly valid name > for the construct. > > In my university in Sweden lambda calculus is never taught neither in > pure nor applied m

Re: [Python-3000] lambda

2008-03-27 Thread Leif Walsh
On Thu, Mar 27, 2008 at 3:13 AM, Greg Ewing <[EMAIL PROTECTED]> wrote: > Leif Walsh wrote: > > On Wed, Mar 26, 2008 at 7:34 PM, Greg Ewing <[EMAIL PROTECTED]> wrote: > > > > >> x, y => x + y > > > > If something like this is adopted, I plead that := is chosen. > > No, that would be massively

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

2008-03-27 Thread Bill Janssen
> There > have been other tests that have also been flaky like test_asynchat, > test_smtplib, test_ssl, test_urllib2net, test_urllibnet, > test_xmlrpc_net and some of the tests that use networking. Some of the *other* tests that use networking, I think you mean. Sounds like networking tests in g

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

2008-03-27 Thread Neal Norwitz
On Wed, Mar 26, 2008 at 5:52 PM, <[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.

Re: [Python-3000] lambda

2008-03-27 Thread Georg Brandl
Olivier Verdier schrieb: > > > On 26/03/2008, *Nick Coghlan* <[EMAIL PROTECTED] > > wrote: > > I think if I come across a keyword I didn't know in a language I was > learning, I'd look it up to find out what it means. > > > Yes but it doesn't look like a key

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

2008-03-27 Thread Ralf Schmitt
On Wed, Mar 26, 2008 at 7:21 AM, Neal Norwitz <[EMAIL PROTECTED]> wrote: > * test_xmlrpc transient socket errors >- > http://www.python.org/dev/buildbot/stable/g4%20osx.4%20trunk/builds/3101/step-test/0 > > These are caused by the accept call returning a nonblocking socket, when the listenin

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Greg Ewing
Charles Merriam wrote: > How can I write the greatest common denominator of this code: > > print "Hello World!" # yes, that needs to be Unicode. Something like from __future__ import unicode_literals from py3k_compat import Print Print("Hello World!") # yes, that indeed is Unicode. g

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Eric Smith
Greg Ewing wrote: > Charles Merriam wrote: >> How can I write the greatest common denominator of this code: >> >> print "Hello World!" # yes, that needs to be Unicode. > > Something like > >from __future__ import unicode_literals >from py3k_compat import Print > >Print("Hello World!

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Eric Smith
Eric Smith wrote: > Greg Ewing wrote: >> Charles Merriam wrote: >>> How can I write the greatest common denominator of this code: >>> >>> print "Hello World!" # yes, that needs to be Unicode. >> Something like >> >>from __future__ import unicode_literals >>from py3k_compat import Print >>

Re: [Python-3000] Python 3.0 Porting Strategies

2008-03-27 Thread Neal Norwitz
On Thu, Mar 27, 2008 at 3:52 AM, Lennart Regebro <[EMAIL PROTECTED]> wrote: > On Thu, Mar 27, 2008 at 5:33 AM, Talin <[EMAIL PROTECTED]> wrote: > > -- A document describing the "common subset", and how to write programs > > in it. This doesn't have to be a complete standalone manual, just an >

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

2008-03-27 Thread Neal Norwitz
On Thu, Mar 27, 2008 at 11:31 AM, Bill Janssen <[EMAIL PROTECTED]> wrote: > > There > > have been other tests that have also been flaky like test_asynchat, > > test_smtplib, test_ssl, test_urllib2net, test_urllibnet, > > test_xmlrpc_net and some of the tests that use networking. > > Some of t