3 ms·
It’d be better to use namedtuple to avoid repeating same dictionary keys imo
by impoppy 5y ago
It’d be better to use namedtuple to avoid repeating same dictionary keys imo
- pytlicek 5y agoI know what you mean. Now it returns a field with dictionaries. Repeating keys as such is not possible and this is the desired state. But yes, with namedtuple you could manoeuvre more and add line numbers for example. Good idea, I'll think about it in the future.