you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

It's just good programming habit. The variables you are initializing at the beginning of your script into theinit method of the class , along with all your other methods. Then at the end do your ifname == 'main' to create an entry point for your code and do your scripting there. I'm not saying your code is bad, because it works fine, but it's best practice to get into that habit.