The f_lineno attribute of frame objects will always contain the expected line number. Tracing events, with the correct line number, are generated for all lines of code executed and only for lines of code that are executed. PEP 626 brings more precise and reliable line numbers for debugging, profiling and coverage tools. PEP 626: Precise line numbers for debugging and other tools ¶ Which can happen if some other custom error display function is used. Notice this won’t work if PyErr_Display() is not called to display the error, This allows formatting a longĬollection of context managers in multiple lines in a similar wayĪs it was previously possible with import statements. Using enclosing parentheses for continuation across multiple lines New Features ¶ Parenthesized context managers ¶ PEP 623, Deprecate and prepare for the removal of the wstr member in PyUnicodeObject. Important deprecations, removals or restrictions: PEP 612, Parameter Specification Variables PEP 604, Allow writing union types as X | Y PEP 626, Precise line numbers for debugging and other tools. PEP 618, Add Optional Length-Checking To zip. PEP 636, Structural Pattern Matching: Tutorialīpo-12782, Parenthesized context managers are now officially allowed. PEP 635, Structural Pattern Matching: Motivation and Rationale PEP 634, Structural Pattern Matching: Specification Python 3.10 was released on October 4, 2021.įor full details, see the changelog. This article explains the new features in Python 3.10, compared to 3.9. PEP 612: Parameter Specification Variables.Optional EncodingWarning and encoding="locale" option.PEP 626: Precise line numbers for debugging and other tools.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |