Re: [Python-Dev] conditional expressions - add parens?
Steve Holden wrote: Contrast with the bleeding obvious: level = 0 if absolute_import in self.futures: level = -1 regards Steve The issue that spawned the necessity of a ternary operator in the first place was that this syntax is not usable at all in quite a few situations like, say, list comprehensions... ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Let's just *keep* lambda
Guido van Rossum wrote: After so many attempts to come up with an alternative for lambda, perhaps we should admit defeat. I've not had the time to follow the most recent rounds, but I propose that we keep lambda, so as to stop wasting everybody's talent and time on an impossible quest. The inline anonymous `def` isn't as ugly/problematic as the block (block anonymous def) version, and could probably work better than lambda, I think (a bit more verbose, but at least it doesn't feel like a castrated function definition, is more coherent with the existing function definition syntax, and accepts more than a single statement... well that last part probably isn't a pro arguments...). Couldn't it be enabled (as an inline construct only) to replace the current lambda? ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] yield back-and-forth?
Christian Tanzer wrote: How about: def main_generator(): ... yield * sub_generator() Ducking-ly yrs, I like that one, but I'd stick the star to the generator (e.g. yield *sub_generator), the meaning being to unpack the generator into the yield, same as unpacking a sequence passed as function parameters. As an extension, the syntax may even (though I'm not sure it'd be a good idea to do so) work with any iterable, behaving the same way (yielding the successive values of the iterable object) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] Buildbot questions
I currently have a (quite weak) computer that mostly sits idle (shares the web connection), Tbird 750; 640Mb RAM; Windows Server 2003 Standard Edition. Since the computer sits there doing nothing, I could probably put a buildbot on it if needed (since the python-dev thread states that many windows flavour would be appreciable and that Win2003 may not be extremely common), but i'd like to know how often it'll try to build, and how long the build itself may take on such a platform. Morel Xavier ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com