Well, all variables have a name space. If you just have a global function, it will take a global variable in order for it to keep it's value. If you put the function in a class, you can set a static class attribute.
>>> class Line_Printer:
first=True
def __init__(self):
self.first=True...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.