Message211737
Issuing the 'continue' pdb command with a lazy_import.py script as:
# START of lazy_import.py
import sys, pdb
for m in sys.modules:
if m == 'sys':
pdb.set_trace()
# END of lazy_import.py
gives the following output:
$ python lazy_import.py
> lazy_import.py(3)<module>()
-> for m in sys.modules:
(Pdb) continue
Traceback (most recent call last):
File "lazy_import.py", line 3, in <module>
for m in sys.modules:
RuntimeError: dictionary changed size during iteration |
|
Date |
User |
Action |
Args |
2014-02-20 16:47:20 | xdegaye | set | recipients:
+ xdegaye, georg.brandl |
2014-02-20 16:47:20 | xdegaye | set | messageid: <1392914840.47.0.865855778793.issue20703@psf.upfronthosting.co.za> |
2014-02-20 16:47:20 | xdegaye | link | issue20703 messages |
2014-02-20 16:47:19 | xdegaye | create | |
|