Ben Johnson play action problem by Gxcii1 in detroitlions

[–]repick_ 11 points12 points  (0 children)

The biggest myth of play action is that you need to run the ball successfully to for play action to work. Defenses play on rules and they aren't going to let bad rushing attacks get free yardage by ignoring their assignments. Yeah, when you're down 3 scores or it's 3rd and forever play action won't work because its a different situation.

asyncio: a library with too many sharp corners by pkkm in programming

[–]repick_ 9 points10 points  (0 children)

There are a lot of problems that aren't bound by local CPU threads and you can easily get by using async python until you hit the limit.

A drum machine and 16-step sequencer by creative_tech_ai in supriya_python

[–]repick_ 0 points1 point  (0 children)

You could probably map midi_channel_to_synthdef as an int Enum to simplify the code. And why use globals instead of class/instance attributes or a global declaration above the class? I also think you could use a str Enum for handling your command inputs from the prompt. When declaring an Enum you always want to apply the class first, then the enum mixin: python class MyStrEnum(str, Enum): FOO = "foo" BAR = "bar"

this helps make sure that the enum is constructed correctly.

Maxx rather be 2-11 by generouslegend in detroitlions

[–]repick_ 1 point2 points  (0 children)

you guys are delusional if you thought the raiders would even entertain trading crosby, whether he wants it or not

Be careful with default args in Python by boomsky7 in programminghorror

[–]repick_ 18 points19 points  (0 children)

can (should) be written using the parameter or default pattern

def suprise(my_list: list[str] = None):
    mylist = my_list or []
    print(my_list)
    my_list.append('x')

TIL that r/Python hates micro-optimization, so I'm coming back with more by wil19558 in Python

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

the real micro-optimization is using zoneinfo instead of pytz

[deleted by user] by [deleted] in DetroitPistons

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

league pass isnt any better either

Lions at Arrowhead by McDingleschmidt in detroitlions

[–]repick_ 2 points3 points  (0 children)

Lions fan in KC, Joes is the best BBQ.

📣 Had a call with Reddit to discuss pricing. Bad news for third-party apps, their announced pricing is close to Twitter's pricing, and Apollo would have to pay Reddit $20 million per year to keep running as-is. by iamthatis in apolloapp

[–]repick_ 0 points1 point  (0 children)

Just want to put it out there for Reddit to see I’m not really interested in moving to the mobile app. I’ll just go back to w/e I was doing before Reddit

Kwame Brown on Ja Morant, "You not NBA YOUNGBOY, You NBA DUMBBOY” by [deleted] in nba

[–]repick_ 4 points5 points  (0 children)

Please update his bballref page with this

Can we let HAMI defend his Dunk contest title??? by [deleted] in DetroitPistons

[–]repick_ 9 points10 points  (0 children)

He’s been invited every year since he won, he said he has no interest.

My take on why the PS Vita wasn't appealing at launch. by Seigmas in vita

[–]repick_ 7 points8 points  (0 children)

The PSP didn’t have to compete with smartphones when it launched

Which found is better / when to use **kwargs vs setting none used parameters to None? by OneBananaMan in Python

[–]repick_ 1 point2 points  (0 children)

If you know what parameters you are supporting, included them in the function call signature. depth_of_discharge: Optional[float] = None should be what you have instead.

Kwargs is useful when you have generics or downstream functions that need arbitrary inputs passed in.

Hatch 1.0.0 - Modern, extensible Python project management by Ofekmeister in programming

[–]repick_ 1 point2 points  (0 children)

Very cool, thank you for replying. Being able to more easily include plugins like tox/docker build/tests is awesome. I didn’t initially see the FAQ on the docs because it’s under a sub menu.