DOC: Improvements in library/stdtypes
DOC: Improvements in library/stdtypes
This PR do:
- Replace :meth: by :func: around repr function
- Add links to Unicode Standard site
- Make explicit "when" can call the iskeyword function The previous text can make a confusion in reader. The reader could understand the isidentifier method call the iskeyword. Now, is explicit that the dev can do it.
- Replace a URL by a link
This PR is stale because it has been open for 30 days with no activity.
Trying to compile I get: make html mkdir -p build Building NEWS from Misc/NEWS.d with blurb PATH=./venv/bin:$PATH sphinx-build -b html -d build/doctrees -W . build/html Running Sphinx v4.5.0 loading pickled environment... done building [mo]: targets for 0 po files that are out of date building [html]: targets for 496 source files that are out of date updating environment: [config changed ('version')] 485 added, 0 changed, 14 removed reading sources... [100%] whatsnew/index
Warning, treated as error: /home/me/Documents/cpython/Doc/c-api/complex.rst:49:Error in declarator or parameters Error in declarator or parameters Invalid C declaration: Expected identifier, got user-defined keyword: complex. Remove it from c_extra_keywords to allow it as identifier. Currently c_extra_keywords is ['alignas', 'alignof', 'bool', 'complex', 'imaginary', 'noreturn', 'static_assert', 'thread_local']. [error at 39] Py_complex _Py_c_neg(Py_complex complex) ---------------------------------------^ make: *** [Makefile:51: build] Error 2
cpython/Doc on ๎ pr/24466 [$] via ๐ v3.11.0a6+ took 1m16s
My environment should be ok. I did have an issue but this was made good yesterday and I am using the recommended Sphinx version, also has been compiling the Docs ok up to now. I know this shows the error is with complex.rst but cant confirm all good. Plus noted you have conflicts with your branch.
The checks were run long enough ago that I can't see what failed, but merging with main should hopefully fix it. Otherwise, I can give it a closer look.
Ah, its just failing because of some trailing whitespace, but that's already fixed in my suggestions, so just apply those and you should be good to go.
FYI, in case you aren't aware, you can do so by going to the Files changed tab, click Add to batch on the suggestions you want to apply, then once you've selected them all, click Commit on any suggestion or up top to commit them all in one go directly to the PR and auto-resolve the linked review comments.
Ah, its just failing because of some trailing whitespace, but that's already fixed in my suggestions, so just apply those and you should be good to go.
FYI, in case you aren't aware, you can do so by going to the
Files changedtab, clickAdd to batchon the suggestions you want to apply, then once you've selected them all, clickCommiton any suggestion or up top to commit them all in one go directly to the PR and auto-resolve the linked review comments.
In fact, I was not aware about this. However, I read this comment too late. I will use this resource in a next time.
Thanks for suggestions and good discussion.
Status check is done, and it's a success โ .
Thanks @adorilson for the PR ๐ฎ๐.. I'm working now to backport this PR to: 3.10, 3.11. ๐๐โ๐ค
Sorry, @adorilson, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker a0d940d6acbb5c6614cf892192d8cb0d7002e5a6 3.11
Sorry @adorilson, I had trouble checking out the 3.10 backport branch.
Please retry by removing and re-adding the "needs backport to 3.10" label.
Alternatively, you can backport using cherry_picker on the command line.
cherry_picker a0d940d6acbb5c6614cf892192d8cb0d7002e5a6 3.10
Backporting this is actually slightly complicated, since the 3.11 branch is still using v14 of the Unicode standard, and the links added in this PR all point to v15 of the Unicode standard. I'm not going to undertake backporting this myself, but if you want to do a manual backport to the 3.11 branch @adorilson (without the Unicode-standard-related changes), feel free to ping me, and I can get it merged.
@AlexWaygood When whomever is manually backporting, the links could simply be adjusted to point to Unicode 14.0, or Unicode 13.0 for 3.10.
@AlexWaygood When whomever is manually backporting, the links could simply be adjusted to point to Unicode 14.0, or Unicode 13.0 for 3.10.
Indeed they could, but on balance, I'd prefer they weren't. I think backports should generally be as minimal as possible, and should generally differ from the original PR as little as possible. This reduces the risk of discrepancies emerging between the branches, which might complicate future backports.
But, I don't have a particularly strong opinion about it.
It seems I'm a little confused, sorryโI thought you were suggesting above to not backport the change at all, or to completely omit a substantial part of the changes. However, it now sounds like you're suggesting backporting it as-is without changing the links, which would be the minimal delta to the original PR, and equally the lowest chance of creating merge conflicts with future backports (which is certainly a concern that I share). The next-most-minimal diff to both the original PR and between the branches would be just tweaking only the versions in the URLs, which it seems you're not in favor of, if I understand you right?