Re: [Python-Dev] yield * (Re: Missing operator.call)
[email protected] schrieb: > On 01:00 am, [email protected] wrote: >>Guido van Rossum wrote: >>>We already have yield expressions and they mean something else... >> >>They don't have a "*" in them, though, and I don't >>think the existing meaning of yield as an expression >>would carry over into the "yield *" variant, so there >>shouldn't be any conflict. >> >>But if you think there will be a conflict, or that the >>similarity would be too confusing, maybe the new >>construct should be called something else. I'm >>open to suggestions. > > I'm *already* regretting poking my head into this particular bike shed, > but... > > has anyone considered the syntax 'yield from iterable'? i.e. Yes, basically the "yield *" and "yield from" are the two possibilities that come up every once in a while. Would that someone wrote a PEP, so that we can get a decision at some time. Georg -- Thus spake the Lord: Thou shalt indent with four spaces. No more, no less. Four shall be the number of spaces thou shalt indent, and the number of thy indenting shall be four. Eight shalt thou not indent, nor either indent thou two, excepting that thou then proceed to four. Tabs are right out. ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] Mark old distutils as deprecated
Hello To avoid confusion, as suggested by Akira who works on cleaning the Distutils pages on the python.org website, I would like to move http://svn.python.org/view/distutils/trunk into a branch and add a README.txt in an empty trunk to explain the current status of the package. Any objection ? Regards, Tarek -- Tarek Ziadé | Association AfPy | www.afpy.org Blog FR | http://programmation-python.org Blog EN | http://tarekziade.wordpress.com/ ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Mark old distutils as deprecated
On Sun, Feb 08, 2009 at 11:15:46AM +0100, Tarek Ziadé wrote: > To avoid confusion, as suggested by Akira who works on cleaning the > Distutils pages on the python.org website, > I would like to move http://svn.python.org/view/distutils/trunk into a > branch and add a README.txt in an empty trunk > to explain the current status of the package. That seems fine to me. --amk ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] IDLE reading IDLESTARTUP or PYTHONSTARTUP on restart
On Sat, Feb 07, 2009, Mitchell L Model wrote: > > I have a small change (shown below) to PyShell.py in idlelib that causes > the subprocess interpreter to read IDLESTARTUP or PYTHONSTARTUP each time > it restarts. To me this would make IDLE much more useful for myself and > students I teach. It isn't quite clear what behavior to install with the > enabling patch, so I would like some feedback before submitting it. You haven't received any feedback so far, so I recommend going ahead and submitting the patch to ensure that it doesn't get lost. -- Aahz ([email protected]) <*> http://www.pythoncraft.com/ Weinberg's Second Law: If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization. ___ Python-Dev mailing list [email protected] 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 * (Re: Missing operator.call)
[email protected] wrote: has anyone considered the syntax 'yield from iterable'? That would be reasonable, too. I don't really have any strong feelings about the syntax at the moment, except that I'd like it to be something reasonably short so that embedding it in an expression is a feasible thing to do. -- Greg ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
