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 — gh-151948:Fix all Sphinx reference warnings in `Doc/library/select.rst` by lpyu001 · Pull Request #151957 · python/cpython Conversation
|
Documentation build overview
420 files changed ·
|
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.
We don't want to just remove the references, we want to fix them.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase And if you don't make the requested changes, you will be put in the comfy chair! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I've modified it.pls review again |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| :const:`POLLPRI`, and :const:`POLLOUT`, described in the table above. If not | ||
| specified, the default value used will check for all 3 types of events. | ||
|
|
||
| +-------------------+-------------------------------------------+ |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Why was this moved?
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.
@lpyu001 Please answer this question.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Doc/library/select.rst
|
I have made the requested changes; please review again |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for making the requested changes! @StanFromIreland: please review the changes made to this pull request. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
when the table remains inside the poll.register() directive, Sphinx records the first entry with the HTML ID select.poll.POLLIN, it creates an incorrect permalink and intersphinx inventory entry for POLLIN
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, I replied to the question earlier, but I forgot to click “Submit review”, so the comment remained pending. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Additionally, Sphinx omits the current context prefix from the displayed signature, so it shows only POLLIN, making it inconsistent with the other constants. |
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.
Aargh, sorry, I had this in pending all along!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| .. method:: kqueue.control(changelist, max_events[, timeout]) | ||
|
|
||
| Low level interface to kevent | ||
| Low level interface to kevent, returning a list of events. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| Low level interface to kevent, returning a list of events. | |
| Low level interface to kevent, returning a list of :ref:`kevent <kevent-objects>` | |
| objects. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| | Constant | Meaning | | ||
| +============================+============================================+ | ||
| | :const:`KQ_NOTE_LOWAT` | Low water mark of a socket buffer. | | ||
| | .. data:: KQ_NOTE_LOWAT | Low water mark of a socket buffer. | |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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.
.. currentmodule:: select doesn't actually fix it. It only resets py:module, not py:class, so a nested table still produces select.kevent.KQ_NOTE_LOWAT. What fixes it is putting the intro sentence at column 0, because that ends the .. attribute:: body. A build without currentmodule produces an identical objects.inv.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I have made the requested changes; please review again |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for making the requested changes! @StanFromIreland: please review the changes made to this pull request. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| The following flags can be used with :attr:`kevent.fflags`, depending on the | ||
| filter type. | ||
|
|
||
| :const:`KQ_FILTER_READ` and :const:`KQ_FILTER_WRITE` filter flags: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Why are these dedented now, did setting .. currentmodule:: not work?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
yes .. currentmodule:: only sets py:module, not py:class — with the table left inside the attribute body I still got select.kevent.KQ_NOTE_LOWAT. Dedenting ends the attribute body, which puts the constants back at module scope. I dedented the tables too so they don't render inside a blockquote |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Oh I see, is there no other way to avoid this? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The current approach is the only one I found that works, and I think the current layout also follows existing documentation conventions. Several modules already document constants exactly like this
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.