[New-bugs-announce] [issue46522] concurrent.futures.__getattr__ raises the wrong AttributeError message
Thomas Grainger
report at bugs.python.org
Tue Jan 25 10:16:23 EST 2022
New submission from Thomas Grainger <tagrain at gmail.com>:
>>> import types
>>> types.ModuleType("concurrent.futures").missing_attribute
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'concurrent.futures' has no attribute 'missing_attribute'
>>> import concurrent.futures
>>> concurrent.futures.missing_attribute
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/graingert/miniconda3/lib/python3.9/concurrent/futures/__init__.py", line 53, in __getattr__
raise AttributeError(f"module {__name__} has no attribute {name}")
AttributeError: module concurrent.futures has no attribute missing_attribute
----------
messages: 411611
nosy: graingert
priority: normal
pull_requests: 29069
severity: normal
status: open
title: concurrent.futures.__getattr__ raises the wrong AttributeError message
versions: Python 3.10, Python 3.11, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46522>
_______________________________________
More information about the New-bugs-announce
mailing list