GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||
GeezerVison is showing github.com — bpo-36675: Doc: Reveal doctest directives by JulienPalard · Pull Request #23620 · python/cpython Conversation
|
|
Backport won't be possible, we have older sphinx on older branches. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@andresdelfino I see you a lot on the doc those time, though you would be interested in proofreading this :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@JulienPalard Sure! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@JulienPalard could you check the comment I made? I believe something is missing. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@andresdelfino Gladly, but, which comment? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Another bad idea is to print things that embed an object address, like | ||
|
|
||
| .. doctest:: | ||
|
|
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Perhaps
| :no-trim-doctest-flags: |
is missing here?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The rendered docs doesn't show the doctest directive in this case.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to keep it hidden in this case. The case is:
>>> id(1.0) # certain to fail some of the time
7948648
>>> class C: pass
>>> C() # the default repr() for instances embeds an address
<C object at 0x00AC18F0>
the comment in the case is true: it's expected to fail. If we reveal the hidden doctest: +SKIP it's no longer expected to fail, the comment becomes erroneous.
The point of this example is to demo usefull cases for +ELLIPSIS, not +SKIP.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Oh, ok :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@JulienPalard sorry, I thought it was submitted, but I was seeing a draft. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This breaks the minimum version of sphinx listed in Docs/conf.py: Line 48 in f7f0ed5
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@asottile that's right, let's bump this, thanks for noticing! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@JulienPalard there's been additional efforts in this release to maintain compatibility with 1.x so there might be competing opinions here |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Ok so let's discuss this futher in an issue. I'm opening it → https://bugs.python.org/issue42843 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
sounds good -- I only noticed this because it broke the packaging for deadsnakes (on 20.04, 18.04 and 16.04) so I reverted this patch there: deadsnakes/python3.10@f69292e |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry for this :( |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
no big deal, I'm considering dropping the documentation build since it's ~95% of my maintenance and I'm not sure anybody actually uses it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This reverts commit c8a10d2.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.