Skip to main content



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)

#democracy #voting







#python

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?)

in reply to bmaxv

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)

#Python




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



Exemple de traitement différencié de chiffres de sondages.
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


It's Saturday. Be like Mabel and chill in your own special little place.
#cats #katzen #catstodon #caturday



in reply to Michael 🇺🇦

von der Distanz her bin ich in ähnlichen Bereichen, aber zeitlich war ich länger unterwegs und mehr zu Fuß
in reply to Michael 🇺🇦

@Michael Vogel BTW, wäre es möglich, Bilder unterhalb der Anzeigegröße nicht auf diese zu expandieren. Sieht nach Augenweh aus.





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 entry was edited (8 months ago)
in reply to Kathy E. Gill 🇺🇦

This is the plan behind this type of behavior. They know it will be such a massive headache for whoever tries to hold them accountable that no one does it. it's totally asymmetric, you prosecute and your life gets turned upside down, you're worried about your families' safety. and for what? so someone can plea to some BS and get 50 hours of community service?

in reply to Matt Blaze

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.



I'm in Merimbula NSW this weekend. Here are a couple of swans on the bay taken during our morning walk.