duncan.booth at invalid.invalid
Mon Jun 23 09:27:40 CEST 2008
Paddy <paddy3118 at googlemail.com> wrote:
> I monitor changes to the Wikipedia doctest page, and so noticed a
> change in the Ruby implementation of doctest.
> Scooting around their implementation I found that they have an !!!
> special directive that says drop into the interpreter at this point
> when testing allowing debugging in context.
Whereas Python has the more wordy version which works anywhere in ordinary
code or in doctests:
>>> import pdb; pdb.set_trace()
Duncan Booth http://kupuguy.blogspot.com
More information about the Python-list