[New-bugs-announce] [issue33446] destructors of local variables are not traced
Xavier de Gaye
report at bugs.python.org
Tue May 8 14:29:15 EDT 2018
New submission from Xavier de Gaye <xdegaye at gmail.com>:
In the following code, the destructors of objects referenced by the 'a' and 'b' local variables are not traced by the 'step' command of pdb.
1 class C:
2 def __init__(self, name):
3 self.name = name
4
5 def __del__(self):
6 print('"%s" destructor' % self.name)
7
8 def main():
9 a = C('a')
10 b = C('b')
11 import pdb; pdb.set_trace()
12 a = 1
13
14 main()
----------
components: Interpreter Core, Library (Lib)
messages: 316290
nosy: xdegaye
priority: normal
severity: normal
status: open
title: destructors of local variables are not traced
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33446>
_______________________________________
More information about the New-bugs-announce
mailing list