Jun-04-2020, 12:53 PM
Given the scenario
I'm getting that it has not been assigned in the function.
Input much appreciated
class SomeClass:
myvar = 0
def __init__(self):
do stuff here
def func(self):
do stuff here
myvar += 1
print(myvar)Would not myvar be a global for the class?I'm getting that it has not been assigned in the function.
Input much appreciated
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
Download my project scripts
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
Download my project scripts
