Difference between setattr and object manipulation in python/django
This is more of a Python question. Python is very dynamic language. You can code things (classes) ahead of time, or Python allows you to create classes completely dynamically at run-time. Consider the following example of a simple vector class. You can create/code the class ahead of time like: class MyVector(object): x = 0 y … Read more