

Dude, I just got here. Been touring Kreetan architecture and wildlife.
In the style of Higginbottom. Formerly staticv0id@reddit
Dude, I just got here. Been touring Kreetan architecture and wildlife.
Starfield pirate facing consequences of his actions
My favorite way to implement this is with decorators. I used this to make a dispatch table for reading objects from a MySQL database.
(Yes I know I should be using UserDict below. You should too and don’t subclass dict like I did.)
class FuncRegistry(dict):
"""Creates a registry of hashable objects to function mappings."""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def register_for(self, key: Hashable) -> Callable:
"""Decorator to register functions in the registry.
Parameters
key: Hashable
The key which should point to this function
Returns: Callable
Returns a decorator that registers the function to the key"""
def decorator(fn: Callable) -> Callable:
self[key] = fn
return fn
return decorator
qreg = FuncRegistry()
@qreg.register_for('foobr')
def handle_foobr(arg1, arg2):
# do something here then
return
qreg['foobr']('ooo its an arg', 'oh look another arg')
edit: formatting
Sure, I read the manual all the time. I have a short memory for each tool’s options and syntax.
Have I read it cover to cover? No, and I never will.
Gamers can hold a grudge like no other asshole.
“I paid the equivalent of a restaurant lunch PER MONTH for THIS 76 BULLSHIT and I WAS NOT ENTERTAINED and there weren’t ANY PEOPLE NPCS and NOTHING WAS WORKING and ALL BETHESDA GAMES SUCK and and and”
Nah. Reddit content is noticeably worse after the API changes. I don’t find myself going back unless I’m searching for something technical for my job. I’m not actively trying to avoid it, but that’s just how it’s working out.
Should they? Yes.
Would they? Ahhhahahaha
As an armchair scientist and a Chicagoan, I support this stunt. :)
But seriously, as I observed elsewhere, 0.1 µSv/banana is way higher than 3.9 µSv/yr.
Never, because I’m a very stable geenius.
No thanks
After a year of sleeping on one, I wanted to introduce it to an air-to-surface missile. Mattress is the only way to go.
Laser Blast and Pitfall 2 on the 2600
Are bananas next? 0.1 µSv/banana is way higher than 3.9 µSv/yr 😱
The time before, I got laughed out of the room.
Sudden? That’s been declining for years my dude.
I’m lucky if people understand the first bullet point in my emails. I’m luckier still if they keep reading, never mind understand my next point.
In terms of upcharges and fees, anything is possible with telecom billing. It’s so bad that many telecoms have full-time staff to audit the bills from other telecoms.
Indeed
‘Tis better to .split() in the cloud than never to .split() at all
Fantastic news. This will help me immensely!
Having it run locally would be even more help for my use cases. I often have lists of IP addresses in my sheets, and it would be helpful to ping them directly from Python code. But I can work around that with fping or nmap.
With luck, it’ll eventually get all the apemen. Time to let evolution pick our successors. Humanity is a dead-end.