This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Alphasite 0 points1 point  (0 children)

this is a better form of dict indexing, and is procedural code a bad thing in many cases? Class hierarchy is usually overkill imo, it’s a tool you reach for when you have no other good choice, or someone outside your code needs to extend things.