[New-bugs-announce] [issue42925] Error trace of else inside class

ChenXuan report at bugs.python.org
Wed Jan 13 07:57:56 EST 2021


New submission from ChenXuan <522169030 at qq.com>:

Hi, python3.10 seems to give wrong trace here:
class A:
   if 3 < 9:
      a = 1
   else:
      a = 2

result:
    2: class A:
    1:    if 3 < 9:
    1:       a = 1
          else:
    1:       a = 2
       

command: python3.10 -m trace --count -C . a1.py
environment: Linux 5.8.0-36-generic #40~20.04.1-Ubuntu SMP
version: python3.10.0a4

----------
files: a1.py
messages: 385023
nosy: ChenXuan
priority: normal
severity: normal
status: open
title: Error trace of else inside class
versions: Python 3.10
Added file: https://bugs.python.org/file49740/a1.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42925>
_______________________________________


More information about the New-bugs-announce mailing list