5 ms·
If you want type-checking on your objects, but with full polymorphism, use zope.interface. If you want dicts to be accessible as objects with attribute access
by MostAwesomeDude 15y ago
If you want type-checking on your objects, but with full polymorphism, use zope.interface.
If you want dicts to be accessible as objects with attribute access instead of subscript access, either create a real object which mocks/wraps/encapsulates/etc. your dict, or modify your desires.
This is not Pythonic. Sorry.