[New-bugs-announce] [issue38654] `urllib.request.Request` uses mutable value as default value
Efanzh
report at bugs.python.org
Thu Oct 31 09:17:53 EDT 2019
New submission from Efanzh <efanzh at gmail.com>:
The `headers` argument of the `__init__` method of `urllib.request.Request` class uses `{}` as default value, which is mutable. It is not a good idea.
----------
components: Library (Lib)
messages: 355750
nosy: EFanZh
priority: normal
pull_requests: 16537
severity: normal
status: open
title: `urllib.request.Request` uses mutable value as default value
type: enhancement
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38654>
_______________________________________
More information about the New-bugs-announce
mailing list