[Grok-dev] manuel plugin for Martian's FakeModule?

Leonardo Rochael Almeida leorochael at gmail.com
Thu Oct 22 07:59:52 EDT 2009

Hi Paul,

That's really impressive, I'd say it's much better to type a whole
module like this than in a standard doctest. Reindenting code is much
easier than adding ">>> " to it. And to top it off no need to bother
with the weird looking class faking as module thing.

My next question was going to be why didn't you reuse any of the
Martian code for fake modules, but by looking at your code it seems
there wasn't much to reuse anyway, right?

Good job!

On Thu, Oct 22, 2009 at 13:35, Paul Wilson <paulalexwilson at gmail.com> wrote:
> Hi,
> 2009/10/7 Martijn Faassen <faassen at startifact.com>:
>> It looks to me like the FakeModule bit could make a very nice Manuel
>> extension.
>> The FakeModule support + manuel integration could be in a separate
>> library, but since this seems to be of general utility better yet it
>> seems to me would be integrating this into Manuel proper.
>> I hope an interested hacker wants to work on this!
> I've written some code and tests in an attempt to interpret what
> you're meaning here. Perhaps it could form the basis of a solution.
> The tests pass from within the manuel package but I haven't actually
> tried it in a doc test yet (need time!!!). I've gone ahead and used
> the format:
>  .. module-block:: module_name
>      import xyz
>      class ABC: pass
> Let me know if I'm close to the mark, and I'll branch manuel or something.
> Hope this gets the ball rolling...
> Thanks,
> Paul
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> https://mail.zope.org/mailman/listinfo/grok-dev

More information about the Grok-dev mailing list