[Zope3-dev] Re: [Zope-Checkins] CVS: Zope3/src/persistent/tests - test_persistent.py:1.5 persistent.txt:1.2

Chris Withers lists at simplistix.co.uk
Thu Mar 11 06:59:24 EST 2004


Jim Fulton wrote:
>> python persistent.txt won't help me much, and I don't know of an emacs 
>> mode for the kind of pseudo source code
> 
> It's not pseudo code.

The >>> and ...'s make it not python in my mind, but I see where you;re coming 
from...

>> Urm? Adding a comment has gotta be easier than writing all those >>>, 
>> and ...'s
> 
> Right....what's your point?
> 
> In doctests, words are much easier to type than code.
> 
> In traditional tests, words are harder to write than code.
> That's *my* point.

How so? you can put 'em in a docstring or prefix your line with #?
What am I missing here? :-S

>> ...as much as # encourages commenting ;-)
> 
> # discourages commenting.
> 
> It makes it harder to wite words.

huh? how?

> OTOH, doctest encouraging writing documentation because:
> 
> - It makes sure the documentation stays consistent with the
>   implementation.

Well, the examples at least ;-)

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk




More information about the Zope3-dev mailing list