KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm using __init__() like this in some SQLAlchemy ORM classes that have many parameters (upto 20). def __init__(self, **kwargs): for k, v in kwargs.iteritems(): setattr(self, k, v) Is it "pythonic" to set attributes like this?
Tags (comma-separated)
Save Edits
Cancel