Message316290
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() |
|
Date |
User |
Action |
Args |
2018-05-08 18:29:15 | xdegaye | set | recipients:
+ xdegaye |
2018-05-08 18:29:15 | xdegaye | set | messageid: <1525804155.74.0.682650639539.issue33446@psf.upfronthosting.co.za> |
2018-05-08 18:29:15 | xdegaye | link | issue33446 messages |
2018-05-08 18:29:15 | xdegaye | create | |
|