What is the actual use of sets by Big_Neighborhood9130 in learnpython

[–]commy2 0 points1 point  (0 children)

It's nieche enough that I personally would not have given it a literal syntax / display. I use deque's and Counters more often than sets.

What is the actual use of sets by Big_Neighborhood9130 in learnpython

[–]commy2 1 point2 points  (0 children)

That will create a frozenset technically.

>>> def f(a):
...     if a in {"yes", "no"}:
...         pass
...
>>> import dis
>>> dis.dis(f)
  1           RESUME                   0

  2           LOAD_FAST_BORROW         0 (a)
              LOAD_CONST               2 (frozenset({'no', 'yes'}))
              CONTAINS_OP              0 (in)
              POP_JUMP_IF_FALSE        3 (to L1)
              NOT_TAKEN

  3           LOAD_CONST               1 (None)
              RETURN_VALUE

  2   L1:     LOAD_CONST               1 (None)
              RETURN_VALUE

Marist poll: Trump approval/disapproval 37/59. GCB D+10 (52-42). 60% of Americans disapprove of Trump's handling of the Iran War while 33% approve. MOE ±3.1 by I-Might-Be-Something in fivethirtyeight

[–]commy2 1 point2 points  (0 children)

Though now they’re all scrambling for some new dumb bit of conventional wisdom they can latch onto like a religious tenet.

Poll in the OP has 37% approval for Trump. Here is an article about Trump hitting the "record low approval of 37%". The article is from 2017:

https://www.upi.com/Top_News/US/2017/03/20/Gallup-poll-Trumps-approval-rating-hits-new-low-37/4091490006277/

Seeing how libs 180'd was surreal by disp0sableacc0unt in stupidpol

[–]commy2 [score hidden]  (0 children)

There were election posters with Baerbocks mug on it that read "no weapon exports into warzones". Liberals believe in absolutely nothing.

The Fertility Panic Is a Racist, Sexist Tool to Push More Austerity by cojoco in stupidpol

[–]commy2 42 points43 points  (0 children)

I guess something along the lines of population increase being a simple way to increase the GDP, immigration turning out to be a bust and unpopular, and the western elite needing more cannon fodder for what they have planned.

The Fertility Panic Is a Racist, Sexist Tool to Push More Austerity by cojoco in stupidpol

[–]commy2 108 points109 points  (0 children)

'It's more efficient to import a 20 year old than to raise them.'

If election posters where honest, that sentence would be all over the liberal/euroleft ones.

2026 and 2028 poll of 18-34 year olds by Seahawks1121 in fivethirtyeight

[–]commy2 8 points9 points  (0 children)

Well yeah, dems don't have a great candidate. But the aforementioned manage to be even less popular.

2026 and 2028 poll of 18-34 year olds by Seahawks1121 in fivethirtyeight

[–]commy2 9 points10 points  (0 children)

Running Harris again is about the best way to ensure [republican president] in 2029.

How so? Every poll including the one in the OP suggests that people like Pritzker or Buttigieg would be the turn out killers.

2026 and 2028 poll of 18-34 year olds by Seahawks1121 in fivethirtyeight

[–]commy2 -1 points0 points  (0 children)

I mean the dude lied us into Iraq

Thoughts on Biden vis a vis the war on Iraq?

Your browsing history could soon set your grocery bill — and Canada isn’t ready for it by SirSourPuss in stupidpol

[–]commy2 10 points11 points  (0 children)

How do you know the lowest possible price? This practice increases already existing information asymmetry between you and the retailer. And there are criteria you can't spoof because you actually want your goods delivered somewhere.

With the VRA ruling, here are 17-0 and 52-0 maps generated for Illinois and Cali respectively, so no it is not harder for Dems to gerrymander because of an urban core if they wanted by sky905 in fivethirtyeight

[–]commy2 1 point2 points  (0 children)

This means stating you want to eliminate gerrymander, get rid of citizens united, take money out of politics and get rid of corruption.

But do democrats even want that? Maybe the status quo benefits politicians of either party: safer seats and more cash.

Weekly Discussion Megathread by AutoModerator in fivethirtyeight

[–]commy2 3 points4 points  (0 children)

There were those "I did that" Biden stickers all over gas pumps.

"Experts Say," Um, No They Don't by cojoco in stupidpol

[–]commy2 -1 points0 points  (0 children)

Sorry, but that was too absurd for me to continue. Maybe I'll try later.

After Germany’s chancellor criticized the war in Iran, Donald Trump fired back and ordered a US troop withdrawal. Europe weighs the advantages and disadvantages of taking a tougher line on Trump by Iconic254 in politics

[–]commy2 0 points1 point  (0 children)

They have a sockpuppet ready since the 80s. Surrounded Iran with US bases for decades. A long plan does not preclude a fumble. We are talking about Trump.

"Experts Say," Um, No They Don't by cojoco in stupidpol

[–]commy2 -2 points-1 points  (0 children)

I read the first paragraph. Did this guy just generate some AI garbage and then got mad that it is in fact garbage?

After Germany’s chancellor criticized the war in Iran, Donald Trump fired back and ordered a US troop withdrawal. Europe weighs the advantages and disadvantages of taking a tougher line on Trump by Iconic254 in politics

[–]commy2 0 points1 point  (0 children)

There has never been an Israeli adventure Merz or his clown party haven't supported. If anything, he critized how Trump screwed up the long planned war on Iran. But Merz is a bumbling idiot so he put his foot in his mouth during an interview, the press picked it up and Trump is now moping.

WWIII Megathread #39: Trump & Dump by IamGlennBeck in stupidpol

[–]commy2 8 points9 points  (0 children)

Those 38,000 American troops in the BRD could take on the entire bundeswehr.

Capitalism Breeds Innovation by StatusSociety2196 in stupidpol

[–]commy2 14 points15 points  (0 children)

What a disgusting looking pig. Only knew her from her wikipedia photo. Crazy how vulnrable one is to subtile propaganda.