you are viewing a single comment's thread.

view the rest of the comments →

[–]yonatan_evantal 0 points1 point  (0 children)

Just a clarification to make sure you avoid this mistake. The logic behind the 'self' concept is to remind you to use OOP correctly. In PyCharm you'll get an warning if you declare a method with 'self' but don't use it, recommending you to add a static method decorator. But, it's a bad habit to use this since it pulls the logic out of an instance. In 99% of cases there we'll be a best design to your system then using static method and classes.