4 ms·
Any word whether PEP 380 ("yield from") made it in before the cut-off?
by dschobel 17y ago
Any word whether PEP 380 ("yield from") made it in before the cut-off?
- jnoller 17y agoIt did not. PEP 380 will not see the light of day until the moratorium is lifted. This made me sad while I was writing it, but it is what it is.
- fizx 17y agohttp://www.urbandictionary.com/define.php?term=it+is+what+it+is http://www.urbandictionary.com/define.php?term=it+is+what+it... > Used often in the business world, this incredibly versatile phrase can be literally translated as "fuck it." Edit: tongue-in-cheek
- jnoller 17y agoWell; that's not what I meant when I said it. I would love to see PEP 380 in, but I think that the possible benefits of this moratorium outweigh the usefulness of a new feature only a relatively small populace of users will use over the next two years. Remember, well above 90% of the users out there are still on 2.4 and 2.5 - even if pep 380 went in, it would more than likely be in 3k only (a few years from widespread adoption anyway) and in a release OS vendors won't ship for a few years.
- arkx 17y agoAre there some sort of studies or statistics out there regarding adoption of different versions? I'd be interested to see them.
- clutchski 17y agothe phrase "it is what it is" does not mean "fuck it", but rather "i accept this is beyond my control".
- dhimes 17y agoThat is also one (colloquial) interpretation (but not the literal interpretation) of "fuck it."
- viraptor 17y agoJust curious... Isn't there an easier way to handle this case "from the other side"? I.e. a way to write a class that will behave like a "stacking" generator - if the original generator g1 yields a generator g2, then the control will be given to g2 and g1 is put on the stack until g2 is finished - then pops g1 back. It would be a bit uglier and would require the control code to know about the problem (for x in StackingGen(g1()), instead of for x in g1()) and would remove the posibility to yield generators themselves, but it should work ;) Or are there some other problems with this idea?
- jamwt 17y agoYeah, diesel (http://dieselweb.org http://dieselweb.org) takes this approach.
- dschobel 17y agoDrat. I do agree with the analysis you posted on your site [1] that it only will affect early-adopters/language geeks and is probably for the best for the python community at large. But two years is a darn long time in the technology world. It looks like it will be up to the library/framework builders to keep the python hype/momentum going while the language maintainers are playing grown-up and being responsible. [1] for everyone else's sake: http://jessenoller.com/2009/11/09/pep-3003-python-language-moratorium-accepted/ http://jessenoller.com/2009/11/09/pep-3003-python-language-m...
- jnoller 17y agoYes and no; I actually think a stronger focus on the standard lib and the interpreter is plenty of work to keep the hype running. It's been my personal bugbear to do a heck of a lot of cleanup in that space. For example, right now there's discussion about a futures library (ala Java's implementation) for inclusion. There's plenty of work to be done there to make sure some of our older batteries are cleaned up, new ones included, etc. Two years is a long time - but how much of that needs to go into the syntax rather than the standard library? What about more abstractions on top of threading/multiprocessing? An actor implementation? More web technology support? Python is more than the sum of it's implementation - and even that is fair game (see antoine's latest GIL work as an example).
- statictype 17y agoIs there an rss feed available for PEPs?
- mattyb 17y agohttp://www.python.org/dev/peps/peps.rss http://www.python.org/dev/peps/peps.rss OT: Does Chromium (Dev channel, Ubuntu 9.10) not have feed autodetection? I had to look at the page source to find this.
- statictype 17y agoI don't think any version of Chrome currently supports rss, does it? I'm running the Windows developer channel and don't see any obvious way to subscribe to a feed.