5323 shaares
127 private links
127 private links
3 results
tagged
stackoverflow
Is there a way to conveniently define a C-like structure in Python? I'm tired of writing stuff like:
class MyStruct():
def __init__(self, field1, field2, field3):
self.field1 = field1
self.field2 = field2
self.field3 = field3
I'm trying to schedule a repeating event to run every minute in Python 3...