KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Constructors in Python often look like this: class SomeClass: def __init__(self, a, b = None, c = defC): self.a = a self.b = b or [] self.c = c Is there a shortcut for this, e.g. to simply define __init__(self,**kwargs) and use the keys as properties of self ?
Tags (comma-separated)
Save Edits
Cancel