[Zope3-dev] Re: [Zope-Checkins]
CVS: Zope3/src/persistent/tests- test_persistent.py:1.5
persistent.txt:1.2
Tim Peters
tim at zope.com
Thu Mar 11 10:19:22 EST 2004
[Jeremy Hylton]
>> In emacs, execute the command py-shell. You'll get a Python
>> interpreter prompt. You can cut-and-paste code from the interpreter
>> shell into a doctest.
[Chris Withers]
> Can I do that with multi-line doctest examples, or do the '...'s
> fubar everything?
Chris, doctest has been a standard core Python module since 2.1, and was in
wide use before than (that's why it got folded into the core). So read the
docs, or just look at a doctest. In the standard Python test suite,
test_generators.py is a good long example.
More information about the Zope3-dev
mailing list