New submission from Adrien <>:


I am strangely encountering an error whil trying to run "python -m trace -c" 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/", line 193, in _run_module_as_main
>     "__main__", mod_spec)
>   File "/usr/lib/python3.6/", line 85, in _run_code
>     exec(code, run_globals)
>   File "/usr/lib/python3.6/", line 742, in <module>
>     main()
>   File "/usr/lib/python3.6/", line 739, in main
>     results.write_results(opts.missing, opts.summary, opts.coverdir)
>   File "/usr/lib/python3.6/", 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 

components: Library (Lib)
messages: 313604
nosy: Delgan
priority: normal
severity: normal
status: open
title: "RuntimeError: dictionary changed size during iteration" using 
type: behavior
versions: Python 3.6

Python tracker <>
Python-bugs-list mailing list

Reply via email to