[New-bugs-announce] [issue33047] "RuntimeError: dictionary changed size during iteration" using trace.py module
Adrien
report at bugs.python.org
Sun Mar 11 13:19:59 EDT 2018
New submission from Adrien <delgan.py at gmail.com>:
Hello.
I am strangely encountering an error whil trying to run "python -m trace -c script.py" on this simple code:
> import multiprocessing
> queue = multiprocessing.Queue()
> queue.put("a")
Which raises on Windows 10 using Python 3.6.3:
> Traceback (most recent call last):
> File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
> "__main__", mod_spec)
> File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
> exec(code, run_globals)
> File "/usr/lib/python3.6/trace.py", line 742, in <module>
> main()
> File "/usr/lib/python3.6/trace.py", line 739, in main
> results.write_results(opts.missing, opts.summary, opts.coverdir)
> File "/usr/lib/python3.6/trace.py", line 258, in write_results
> for filename, lineno in self.counts:
> RuntimeError: dictionary changed size during iteration
Fixing it seems straightforward, but I do not know what is causing the bug internally.
----------
components: Library (Lib)
messages: 313604
nosy: Delgan
priority: normal
severity: normal
status: open
title: "RuntimeError: dictionary changed size during iteration" using trace.py module
type: behavior
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33047>
_______________________________________
More information about the New-bugs-announce
mailing list