class Note:
nextseqNum = 0
def __init__(self):
self.text = str
self.dateCreated = datetime
self.dateRead = datetime
self.description = str
self.category = str
self.priority = int
self.hidden = bool
self.seqNum = nextseqNum
nextseqNum += 1
For some reason it is throwing me
UnboundLocalError: local variable 'nextseqNum' referenced before assignment
I don't understand why. That is how you make a shared class varaible right?