News for hackers. Stuff that matters.
Re:Stop passing naked dictionaries around: Introducing DStru... by MostAwesomeDude on Friday November 25, 2011 @12:55AM (#3276343)
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.

There are no comments on this comment yet.