Clickbait title, but actually a fascinating video about various kinds of voting systems, and mathematical explorations of how well they distill voter preferences into a result.
'Why Democracy Is Mathematically Impossible'
yewtu.be/watch?v=qf7ws2DF-zk (link to Free Code web app for YT)
Doug Whitfield [Minneapolis] reshared this.
What.
>>> d = {"a":1,"b":2}
>>> l = ["c","d"]
>>> l += d
>>> l
['c', 'd', 'a', 'b']
D:
nonononono.
Why would you do that. Why is that legal.
(Can I sign somewhere to make this illegal and throw a TypeError?)
lol, well, I definitely agree this is weird, but I think it's kind of a natural consequence of dicts being iterable containers of their keys. I don't know if *that* was a particularly good design decision, but it's at least somewhat justified since being able to loop over the keys (for k in d: ...) is a useful and sensible thing to do.
Or you could argue that it's a natural consequence of += accepting any iterable argument on the right side, but personally I think that makes somewhat more sense than dict iteration 🤷 it's close though.
I suppose if you really wanted it to raise a TypeError you could use a custom list subclass that implements that behavior. Or maybe even mess around with the AST to replace list expressions with initializations of that custom class. (Just for fun, of course)
#Google #Pixel 3a mit dem #OpenSource #Betriebssystem #UbuntuTouch zu verkaufen #white #New
#ebay #ubuntu_phone #ubuntu #pixel3a #ubuntu_mobile #linux @fredldotme@mastodon.social @ubports@mastodon.social
How Harris will distinguish her foreign policy from Biden — and Trump
By necessity, Vice President Harris has worked in lockstep with President Biden on his foreign policy. What she would do in the White House if she wins on Nov. 5 will be in focus in Tuesday's debate.
#news #npr #publicradio #usa
posted by pod_feeder_v2
Whuffo likes this.
En fait c’est exactement le même chiffre, mais présenté dans un cas pour dévaloriser Castets et dans l’autre pour favoriser Barnier.
Inspiré de @istaruss sur Twitter. Poke @arretsurimages
EVERYTHING here. Every. Thing.
The DoD & the DOJ are afraid to bust The Arlington Pusher on Trump’s campaign staff
“WE HAVE to keep going after these people. They are wrong. Lots of people know they are wrong, but there are enough people who are afraid of them or who want something from them that they get away with it, again and again.”
digbysblog.net/2024/09/05/the-…
ADDED: why is only NPR pushing?
npr.org/2024/09/05/nx-s1-51019…
#USPolitics
#JournalisticMalpactice
#arlington
#trump
#DOD
#DOJ
#FEC
This abstract photo, captured inside a lighthouse, is mostly a visual pun on the concept of a lighthouse, as well as a study in diagonal and radiating lines.
It was very tight quarters, especially with the tripod. But a tripod was essential here (less for sharpness - at 1/3000 sec- than for composition and framing).
Matt Blaze reshared this.
Kenny Chaffin
in reply to 𝕕𝕚𝕒𝕟𝕖𝕒 🏳️⚧️🦋 • • •Khurram Wadee
in reply to 𝕕𝕚𝕒𝕟𝕖𝕒 🏳️⚧️🦋 • • •Mark Wollschlager
in reply to 𝕕𝕚𝕒𝕟𝕖𝕒 🏳️⚧️🦋 • • •