[Python-Dev] Py2.5 issue: decimal context manager misimplemented, misdesigned, and misdocumented
Nick Coghlan
ncoghlan at gmail.com
Sat Sep 2 17:27:03 CEST 2006
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
More information about the Python-Dev
mailing list