| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Thanks. |
Sorry, something went wrong.
|
Thanks @LamentXU123 for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
Sorry, something went wrong.
…ythonGH-136475) (cherry picked from commit 515b3d1) Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
…ythonGH-136475) (cherry picked from commit 515b3d1) Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
|
GH-136532 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
GH-136533 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
| Read all the data from the binary file-like object *fp*, parse the | ||
| resulting bytes, and return the message object. *fp* must support | ||
| both the :meth:`~io.IOBase.readline` and the :meth:`~io.IOBase.read` | ||
| both the :meth:`~io.IOBase.readline` and the :meth:`~io.TextIOBase.read` |
There was a problem hiding this comment.
This is a binary file-like object. io.TextIOBase.read is incorrect reference.
Sorry, something went wrong.
There was a problem hiding this comment.
Yes I'm not quite sure about this change. There is indeed no doc to ~io.IOBase.read, I suggest to add one here maybe in the future issues(?)
Sorry, something went wrong.
There was a problem hiding this comment.
Now, lets subpress this link. It is incorrect.
Sorry, something went wrong.
There was a problem hiding this comment.
It is better to add the documentation or the anchor for io.IOBase.read, but this is a separate issue. We will need to find also all silenced references to it.
For now, just restore the old code. Without silencing unresolved references.
Sorry, something went wrong.
There was a problem hiding this comment.
IOBase doesn't declare read on purpose because:
Even though IOBase does not declare read, readinto, or write because
their signatures will vary, implementations and clients should
consider those methods part of the interface.
Currently, in io.rst, we also suppress the read method for IOBase. So, we should consider read as a "protocol" that follows "some" signature whose defaults have "some" meanings (again it depends on the object itself).
I suggest that we revert this entirely and keep the warning to know in the future which read() protocol it should follow.
Sorry, something went wrong.
There was a problem hiding this comment.
Please see PR #136629 to revert.
Sorry, something went wrong.
|
|
||
| The :class:`BytesFeedParser`, imported from the :mod:`email.feedparser` module, | ||
| provides an API that is conducive to incremental parsing of email messages, | ||
| The :class:`BytesFeedParser`, imported from the :mod:`email.parser.FeedParser` |
There was a problem hiding this comment.
The name of the module is email.feedparser. email.parser.FeedParser is not a module.
Sorry, something went wrong.
There was a problem hiding this comment.
Oups, sry for this overlook
Sorry, something went wrong.
There was a problem hiding this comment.
Same for this. It seems like we don't get a doc for email.feedparser. We can add it later. Now I suggest to subpress the link.
Sorry, something went wrong.
There was a problem hiding this comment.
I suggest we don't suppress links but keep the warnings so to know which objects need to be documented. Suppressing the links is not a good idea here.
Sorry, something went wrong.
|
Hi @hugovk, the two changes are indeed incorrect. Please revert it. Sry for the overlook. Just subpress the two links mentioned before is OK. sry again. |
Sorry, something went wrong.
….rst` (python#136475)" This reverts commit 515b3d1.
…ail.parser.rst` (pythonGH-136475)" (pythonGH-136629) (cherry picked from commit 5bbf30e) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
…ail.parser.rst` (pythonGH-136475)" (pythonGH-136629) (cherry picked from commit 5bbf30e) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
…rst` (pythonGH-136475) (python#136532) Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
…rary/email.parser.rst` (pythonGH-136475)" (pythonGH-136629) (python#136646) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
before:
This PR fix them all. The changes:
📚 Documentation preview 📚: https://cpython-previews--136475.org.readthedocs.build/