[issue25641] urllib/request.py/getproxies_environment() throws "dictionary changed size during iteration" error occasionally
alphalfalfa
report at bugs.python.org
Mon Nov 16 17:46:08 EST 2015
New submission from alphalfalfa:
For the following lines of code, "dictionary changed size during iteration" would be thrown when the environment variables change while in iteration.
Python-3.5.0/Lib/urllib/request.py
2393 for name, value in os.environ.items():
2394 name = name.lower()
2395 if value and name[-6:] == '_proxy':
2396 proxies[name[:-6]] = value
----------
components: Library (Lib)
messages: 254767
nosy: alphalfalfa
priority: normal
severity: normal
status: open
title: urllib/request.py/getproxies_environment() throws "dictionary changed size during iteration" error occasionally
versions: Python 3.4, Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25641>
_______________________________________
More information about the Python-bugs-list
mailing list