From 16574ee924a6a95829f5a95005e5b90fc87ab3d5 Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Wed, 17 Mar 2021 11:45:05 +0000 Subject: [PATCH] Mention that code.co_lnotab is deprecated in what's new for 3.10. --- Doc/whatsnew/3.10.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index 00b0f985e33868..6e8006850a6fa6 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -175,6 +175,8 @@ Tracing events, with the correct line number, are generated for all lines of cod The ``f_lineo`` attribute of frame objects will always contain the expected line number. +The ``co_lnotab`` attribute of code objects is deprecated and will be removed in 3.12. +Code that needs to convert from offset to line number should use the new ``co_lines()`` method instead. PEP 634: Structural Pattern Matching ------------------------------------ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy