diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-05-11 07:24:02 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-05-11 07:57:45 -0400 |
commit | 11dcf13f48a3fd6cb21ad2e96998061d127ac2ff (patch) | |
tree | 3884434db48f841345ca0f7e38e7286f2bcf03fd /doc | |
parent | 2b84823331e5db2f89d5b8ab6ac00a4447c34cf6 (diff) | |
download | python-coveragepy-git-11dcf13f48a3fd6cb21ad2e96998061d127ac2ff.tar.gz |
fix: Python3.12 now inlines comprehensions
Diffstat (limited to 'doc')
-rw-r--r-- | doc/migrating.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/migrating.rst b/doc/migrating.rst index 5bbc1f33..443afac6 100644 --- a/doc/migrating.rst +++ b/doc/migrating.rst @@ -39,3 +39,16 @@ Consider these changes when migrating to coverage.py 7.x: entire list. Newer versions of coverage.py will be adding to the default set of exclusions. Using ``exclude_also`` will let you benefit from those updates. + + +.. _migrating_py312: + +Migrating to Python 3.12 +------------------------ + +Keep these things in mind when running under Python 3.12: + +- Python 3.12 now inlines list, dict, and set comprehensions. Previously, they + were compiled as functions that were called internally. Coverage.py would + warn you if comprehensions weren't fully completed, but this no longer + happens with Python 3.12. |