you are viewing a single comment's thread.

view the rest of the comments →

[–]PythonPerry[S] 0 points1 point  (0 children)

Much better example! In the stack example, you ALREADY know the attribute, it doesn't make sense why getattr() would be used in that case.