| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
It LGTM for main, but most of the changes should not be backported to 3.11, and some should not be backported to 3.12 either.
It is safer to not use automation, but re-do this work for 3.12 and 3..11 separately, to be sure that you do not remove a working reference.
Sorry, something went wrong.
|
|
||
| * Resizing lists is streamlined for the common case, | ||
| speeding up :meth:`list.append` by ≈15% | ||
| speeding up :meth:`!list.append` by ≈15% |
There was a problem hiding this comment.
I would left it as a reminder that we should add a reference to list.append, and not sweep it under cover.
Sorry, something went wrong.
| ----------- | ||
|
|
||
| * :opcode:`ASYNC_GEN_WRAP`, :opcode:`RETURN_GENERATOR` and :opcode:`SEND`, | ||
| * :opcode:`!ASYNC_GEN_WRAP`, :opcode:`RETURN_GENERATOR` and :opcode:`SEND`, |
There was a problem hiding this comment.
It should not be backported to 3.11.
Sorry, something went wrong.
| * :func:`!importlib.resources.contents` | ||
| * :func:`!importlib.resources.is_resource` | ||
| * :func:`!importlib.resources.open_binary` | ||
| * :func:`!importlib.resources.open_text` | ||
| * :func:`!importlib.resources.read_binary` | ||
| * :func:`!importlib.resources.read_text` | ||
| * :func:`!importlib.resources.path` |
There was a problem hiding this comment.
It should not be backported to 3.12.
Sorry, something went wrong.
|
It could be perhaps simpler to make a patch for 3.11, then apply it to 3.12, fix new warnings, apply the new patch to main and fix the remaining warnings. It is how we did before Git. You can still use this sequence for fixing What's New for older versions. |
Sorry, something went wrong.
yep, good idea.
Interesting, will try that for the next What's New. 👍 |
Sorry, something went wrong.
Sure, we-added :meth:`list.append`, we can deal with it in a new PR. For that PR, append is in this table of operations for mutable sequence types: https://docs.python.org/3/library/stdtypes.html#mutable-sequence-types Should we link list.append to this table, via its existing typesseq-mutable reference, or add new reference to it? Or add append to https://docs.python.org/3/library/stdtypes.html#lists? Or somewhere else? |
Sorry, something went wrong.
|
GH-114649 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
|
GH-114650 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fix 51 warnings, mainly removals or renames.
📚 Documentation preview 📚: https://cpython-previews--114531.org.readthedocs.build/