Periodic reminder: - Generally, you almost certainly don't need a class. - Specifically, if you're passing around an immutable bunch of configuration parameters, you absolutely don't need a class. A namedtuple will do just fine.
-
Show this thread
-
Replying to @generativist
https://docs.python.org/3/library/dataclasses.html … this has advantages over namedtuple but I don't rememver what they are
1 reply 0 retweets 1 like
Replying to @baudvine
Oh yea. I also used `attrs` quiet a lot because I really like it. But I almost always start with named tuple because I just want a localized namespace
9:21 AM - 16 Jan 2020
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.