MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/12p2c67/i_have_committed_blasphemy_against_pythonic_code/jgm6oic/
r/badcode • u/ModernMusicTheory • Apr 17 '23
23 comments sorted by
View all comments
Show parent comment
3
Ah that's fairly elegant. I might consider taking the time to refactor it to working with that approach. It's just a fun project I'm starting, so I'm feeling out a new language.
3 u/indign Apr 17 '23 For something like this, the dataclasses module might be a good fit! 1 u/ModernMusicTheory Apr 17 '23 Just started looking into Dataclasses and also someone suggested Namedtuples. What nice tools! Thank you for the suggestion
For something like this, the dataclasses module might be a good fit!
dataclasses
1 u/ModernMusicTheory Apr 17 '23 Just started looking into Dataclasses and also someone suggested Namedtuples. What nice tools! Thank you for the suggestion
1
Just started looking into Dataclasses and also someone suggested Namedtuples. What nice tools! Thank you for the suggestion
View all comments
Show parent comment
3
u/ModernMusicTheory Apr 17 '23
Ah that's fairly elegant. I might consider taking the time to refactor it to working with that approach. It's just a fun project I'm starting, so I'm feeling out a new language.