3 ms·
I find the @attr example more readable. I've been using Python for a while, but it's not my main development language. I mainly use it for scripting experiment
by scott_s 10y ago
I find the @attr example more readable.
I've been using Python for a while, but it's not my main development language. I mainly use it for scripting experiments, processing data and generating graphs. I generally avoid defining classes as much as possible, and use namedtuple whenever appropriate.