[issue34816] raise AttributeError if loading fails in ctypes.LibraryLoader.__getattr__

Eryk Sun report at bugs.python.org
Sat Mar 27 23:03:27 EDT 2021


Eryk Sun <eryksun at gmail.com> added the comment:

> __getattr__ method of LibraryLoader catches the OSError and 
> raises an AttributeError 

Yes. It seems no one was keen to work on this. I think it's relatively easy, so I'll add that flag in case someone is looking for an easy issue.

----------
keywords: +easy
title: ctypes + hasattr -> raise AttributeError if loading fails in ctypes.LibraryLoader.__getattr__
versions: +Python 3.10, Python 3.9 -Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34816>
_______________________________________


More information about the Python-bugs-list mailing list