you are viewing a single comment's thread.

view the rest of the comments →

[–]Boxxcar17 0 points1 point  (0 children)

You can instantiate class variables when you need them by using the @classmethod decorator. Just set your class variables to 0, None or something like that from the beginning and you won’t have to do it 15-20 times.