New submission from Xavier de Gaye <xdeg...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue33446>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to