John J Lee wrote: > On Thu, 31 Aug 2006, Nick Coghlan wrote: > [...] >> I committed this fix as 51664 on the trunk (although the docstrings are still >> example free because doctest doesn't understand __future__ statements). > [...] > > Assuming doctest doesn't try to parse the Python code when SKIP is > specified, I guess this would solve that little problem: > > http://docs.python.org/dev/lib/doctest-options.html > > """ > SKIP A quick experiment suggests that using SKIP will solve the problem - fixing that can wait until 2.5.1 though. The localcontext() docstring does actually contain an example - it just isn't in a form that doctest will try to execute. Cheers, Nick. -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4