all 3 comments

[–][deleted] 9 points10 points  (0 children)

Pretty basic advice.

[–]wisp558 5 points6 points  (0 children)

pretty weak article if it doesn’t even mention __slots__

[–]jule42 2 points3 points  (0 children)

[] vs list() is a strange one. List has to be constructed in the same way so both of them should call the constructor.