资 源 简 介
Introduction
Python bullwinkle is a set of extended OO utilities originally inspired by working with Perl::Moose. The project has expanded quite a ways from where Perl::Moose adds to Perl and provides contexts, member caching, and more.
Getting Bullwinkle
The easiest non-git approach is simply to easy\_install bullwinkle. The documentation is still in progress but should be fairly readable via pydoc.
Details
Currently Bullwinkle supports the following Moosisms:
Decorator based superclass method calling via @before_super, @after_super, @follow_super, @filter_super, @override_super, and @around_super in classes derived from BWObject.
Class members can be declared using class attributes alleviating the need for an init in many cases. Types can be coerced (somewhat) during construction.
And hopes to support the following:
Deep validation of complex structures (like lists,