Re: [Python-Dev] PEP-xxx: Unification of for statement and list-comp syntax

2006-05-22 Thread Greg Ewing
Heiko Wundram wrote: Yes, of course. Read my replies to Terry J. Reed, to Josiah Carlton, to Talin, to see why I chose to compare it to the 'continue' syntax. I saw them. Your brain must be wired very differently to mine, because I find loops with a continue in them harder to follow than

Re: [Python-Dev] PEP-xxx: Unification of for statement and list-comp syntax

2006-05-22 Thread Greg Ewing
Heiko Wundram wrote: You can also do the same here (by using normal bracketing): for expr in (some non-trivial stuff) if (one expr and two expr and three expr): So you want to be able to write the if

Re: [Python-Dev] PEP-xxx: Unification of for statement and list-comp syntax

2006-05-22 Thread Greg Ewing
Heiko Wundram wrote: Am Montag 22 Mai 2006 01:59 schrieb Josiah Carlson: Not everyone finds list comprehensions easy to read. Why has Python added list-comprehensions, then? (or at least, why has Python added the 'if'-expression to list-comprehensions if they're hard to read? LCs are

Re: [Python-Dev] PEP-xxx: Unification of for statement and list-comp syntax

2006-05-22 Thread Niko Matsakis
I saw them. Your brain must be wired very differently to mine, because I find loops with a continue in them harder to follow than ones without -- exactly the opposite of what you seem to prefer. Delurking for no particular reason: For what it's worth, I also favor the continue syntax Heiko

Re: [Python-Dev] [Python-checkins] r46043 - peps/trunk/pep-0356.txt

2006-05-22 Thread skip
Tim If there's no functionality changes, what would be the problem with Tim putting it in post-alpha? It still represents new code that may introduce new bugs. In theory (and generally in practice for Python), once you move into the beta stage all you do is fix bugs. Skip

Re: [Python-Dev] [Python-checkins] r46043 - peps/trunk/pep-0356.txt

2006-05-22 Thread Thomas Wouters
On 5/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Tim If there's no functionality changes, what would be the problem withTim putting it in post-alpha?It still represents new code that may introduce new bugs.In theory (andgenerally in practice for Python), once you move into the beta stage all

Re: [Python-Dev] PEP-xxx: Unification of for statement and list-comp syntax

2006-05-22 Thread Josiah Carlson
Niko Matsakis [EMAIL PROTECTED] wrote: I saw them. Your brain must be wired very differently to mine, because I find loops with a continue in them harder to follow than ones without -- exactly the opposite of what you seem to prefer. Delurking for no particular reason: For what

Re: [Python-Dev] PEP-xxx: Unification of for statement and list-comp syntax

2006-05-22 Thread Josiah Carlson
Heiko Wundram [EMAIL PROTECTED] wrote: Why isn't this good practice? It's not always sensible to refactor loop code to call methods (to make the loop body shorter), and it's a pretty general case that you only want to iterate over part of a generator, not over the whole content. Because of

Re: [Python-Dev] [Python-checkins] r46043 - peps/trunk/pep-0356.txt

2006-05-22 Thread Delaney, Timothy (Tim)
Thomas Wouters wrote: On 5/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Tim If there's no functionality changes, what would be the problem with Tim putting it in post-alpha? It still represents new code that may introduce new bugs. In theory (and generally in practice for

Re: [Python-Dev] PEP-xxx: Unification of for statement and list-comp syntax

2006-05-22 Thread Greg Ewing
Niko Matsakis [EMAIL PROTECTED] wrote: For what it's worth, I also favor the continue syntax Heiko compared his code against. Without it, you have to scroll to the end of the loop to know whether there is an else clause; Only if the code doesn't fit on one screen, which it should. --

[Python-Dev] Charles Waldman?

2006-05-22 Thread Monica Kendall
Hi Skip, Did you ever find Charles Waldman? We are looking for him too. Monica ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

[Python-Dev] Looking for Memories of Python Old-Timers

2006-05-22 Thread Guido van Rossum
How long have you used Python? 10 years or longer? Please tell us how you first heard of the language, how you first used it, and how you helped develop it (if you did). More recent reminiscences are welcome too! Please add them to my blog: http://www.artima.com/weblogs/viewpost.jsp?thread=161207

Re: [Python-Dev] [Web-SIG] Adding wsgiref to stdlib

2006-05-22 Thread Ian Bicking
Phillip J. Eby wrote: At 02:32 PM 4/28/2006 -0500, Ian Bicking wrote: I'd like to include paste.lint with that as well (as wsgiref.lint or whatever). Since the last discussion I enumerated in the docstring all the checks it does. There's still some outstanding issues, mostly where I'm not

Re: [Python-Dev] [Web-SIG] Adding wsgiref to stdlib

2006-05-22 Thread Guido van Rossum
This explains what to do, and which license to use: http://www.python.org/psf/contrib/ --Guido On 5/22/06, Ian Bicking [EMAIL PROTECTED] wrote: Phillip J. Eby wrote: At 02:32 PM 4/28/2006 -0500, Ian Bicking wrote: I'd like to include paste.lint with that as well (as wsgiref.lint or

Re: [Python-Dev] [Python-checkins] r46064 - in python/trunk: Include/Python.h Include/pyport.h Misc/ACKS Misc/NEWS Modules/_localemodule.c Modules/main.c Modules/posixmodule.c Modules/sha512module.c P

2006-05-22 Thread Neal Norwitz
On 5/22/06, martin.v.loewis [EMAIL PROTECTED] wrote: Author: martin.v.loewis Date: Mon May 22 11:15:18 2006 New Revision: 46064 Modified: python/trunk/Include/Python.h == --- python/trunk/Include/Python.h

Re: [Python-Dev] [Web-SIG] Adding wsgiref to stdlib

2006-05-22 Thread Phillip J. Eby
It's not clear to me whether this means that Ian can just relicense his code for me to slap into wsgiref and thence into Python by virtue of my own PSF contribution form and the compatible license, or whether it means Ian has to sign a form too. At 09:25 PM 5/22/2006 -0700, Guido van Rossum