[issue14865] #doctest: directives removed from doctest chapter examples

2012-05-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- superseder: -> doctest directive examples in library/doctest.html lack the flags ___ Python tracker ___ _

[issue14865] #doctest: directives removed from doctest chapter examples

2012-05-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for discovering that. I did not search well enough. -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue14865] #doctest: directives removed from doctest chapter examples

2012-05-20 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: This is a duplicate of http://bugs.python.org/issue12947 -- nosy: +Devin Jeanpierre ___ Python tracker ___ __

[issue14865] #doctest: directives removed from doctest chapter examples

2012-05-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: To my mind, stripping is not ignoring ;-), but I understand what you mean, sphinx ignores as it pays attention and strips. [2] is the commit for [1], and both are from 3 years ago, long before 3.2.0. Does the true-by-default ``trim_doctest_flags`` config valu

[issue14865] #doctest: directives removed from doctest chapter examples

2012-05-20 Thread Sandro Tosi
Sandro Tosi added the comment: Hi Terry, the same problem recently came up on docs@ and digging into it, it turned out that sphinx is currently ignoring doctest directives[1], but that it was fixed in sphinx 1.1[2]. [1] https://bitbucket.org/birkenfeld/sphinx/issue/169/strip-doctest-csomment

[issue14865] #doctest: directives removed from doctest chapter examples

2012-05-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a somewhat recent reversion. 3.1.5 (a month ago) http://docs.python.org/release/3.1.5/library/doctest.html#module-doctest >>> print(list(range(20))) #doctest: +NORMALIZE_WHITESPACE [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17

[issue14865] #doctest: directives removed from doctest chapter examples

2012-05-20 Thread Terry J. Reedy
New submission from Terry J. Reedy : In the doctest section, 25.2.3.5. Option Flags and Directives has examples of using #doctest: directives in the .rst source ''' An example's doctest directives modify doctest's behavior for that single example. Use ``+`` to enable the named behavior, or ``-