Better HN
topnewbestaskshowjobs
Log inSign up

monoprotic

34 karma · joined Apr 14, 2022 (4y ago) · 5 submissions

Submissions

comment 2y ago · link · parent

There has been discussion of this change a few times, e.g. https://bugs.python.org/issue44603

I generally agree with your overall sentiment, but I think it's important to note that the behavior is _not_ special handling; it's just the normal `repr` behavior at the REPL, where `exit` is an object like any other, and `repr(exit)` is that message.

comment 3y ago · link · parent

In that example, your arms are still rotating about an axis. The moment of inertia of the rotating body increases, so the angular velocity decreases. Imagine instead that the ejected material is no longer rotating about an axis (say, you detached your arms and flung them away in a straight line); the moment of inertia of the remaining rotating body _decreases_, so the angular velocity increases.

comment 3y ago · link · parent

> Why would the exponent be equal to x/2 - floor(x/2) be equal to x/2 on the interval [0, 2)?

floor(x/2) = 0 on the interval [0, 2), so the expression reduces to x/2.

> And how does the graph of x/2 - floor(x/2) imply anything about the behavior of e^(x/2 - floor(x/2))?

If y = x/2 - floor(x/2) is periodic, then e^y = e^(x/2 - floor(x/2)) must be periodic as well, with the same period.

comment 4y ago · link · parent

The pictures in the article really aren't doing the display any favors. I own a Tidbyt and the contrast is way better than it appears here, and the brightness is adjustable (with an API call if you want!) with a pretty high max setting.

comment 4y ago · link · parent

You're entitled to a deduction of up to $300 (or $600 if married and filing jointly) for charitable donations even if you take the standard deduction.