[issue34816] ctypes + hasattr

Lars Friedrich report at bugs.python.org
Thu Sep 27 08:35:06 EDT 2018


Lars Friedrich <lars.friedrich at leica-microsystems.com> added the comment:

Thank you for your reply.

I am not sure if I understood correctly:
Do you suggest to modify ctypes.__init__.py so that the __getattr__ method of LibraryLoader catches the OSError and raises an AttributeError instead, as in your example?

----------

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


More information about the Python-bugs-list mailing list