See this: https://twitter.com/jakevdp/status/786920174595158018
The core expression is similar to this
y = (f(x) for x in L if f(x) is not None)
There are a lot of variations on the filter. The point is that the function appears twice in the above expression.
We …
more ...Check out this idiocy: https://github.com/slott56/py-false
What is the point? Seriously. What. The. Actual. Heck?
I think of it this way.
https://www.bignerdranch.com/blog/which-programming-language-will-earn-you-the-highest-salary/ Okay. I like that. I wonder what the r2 value is.
more ...Here's the question, lightly edited to remove the garbage. (Sometimes I'm charitable and call it "rambling". Today, I'm not feeling charitable about the garbage writing style filled with strange assumptions instead of questions.)
more ...someone asked if you could have both a yield and a return in the same ... function/iterator …
Someone found Yet Another Post (YAP™) insisting that the Gang of Four (GOF™) patterns were on their last legs. The email was misleading, because this is not precisely what the article said. The bottom-line was that Design Patterns in general are merely a response to gaps in the underlying programming …
more ...In "Why Python?" I linked to a deep and sophisticated analysis of programming languages. Anyway, I thought it was a deep and sophisticated analysis.
I got a reply that shows how wrong I was. Here's the quote:
The point is that the Python ecosystem has a lot to offer. We …
more ...First. The question is moot. It's a programming language. It's good for programming. When I push back, folks try to produce languages which exist only in certain pigeon holes. "You know. PHP is for web and JavaScript runs in the browser. What's Python for?" The PHP and JavaScript examples aren't …
more ...