This works well for serialization, as I’ve shown, and also applies to database object-relationship mappings (ORMs), plug-in systems, and system hooks.
- 4. Metaclasses and Attributes
- from Effective Python: 59 Specific Ways to Write Better Python
- Publisher: Addison-Wesley Professional
- Released: March 2015
Is this a good way to do dependency injection in python?
Share this highlighthttp://www.safaribooksonline.com/a/effective-python-59/4166071/