[Grok-dev] Get default directive
Paul Wilson
paulalexwilson at gmail.com
Tue Jan 5 06:00:30 EST 2010
Hi there,
As part of my Manuel fakemodule integration into martian, I've been
looking at the martian 'get_default' stuff that's been worked on
recently. As a reminder, the code searches a component's MRO to find
module directives that might apply to its parents. One thing that I've
noticed is that many classes inherit from 'object' at the top of their
inheritance tree, which causes martian to scan __builtin__ for
directives. I think its quite safe to check if the module is
__builtin__ and skip it -- this would save a bit of time and, more
importantly, allow all tests to pass on my martian branch ;-)
Thoughts?
Thanks,
Paul
More information about the Grok-dev
mailing list