DanCardin

joined 1 year ago
[–] DanCardin 1 points 1 year ago

More obnoxiously than that even, imo, it’s that pathlib removes trailing slashes. Its impossible (afaict) to reproduce path.join(‘a’, ‘b/‘) with pathlib

[–] DanCardin 3 points 1 year ago

I appreciate the search integration. I often forget to use the standalone version on whatever plugin I’m currently using

[–] DanCardin 2 points 1 year ago

I wouldnt hate its existence, and certainly i would always prefer anyone use this over namedtuple.

At the same time, i think i would never use it. 90% of my classes these days are dataclasses, and the set that don’t inherit from anything, and have no methods are vanishingly small

I don’t know that harkening to rust structs makes much sense in python, (…which can have methods)