[issue35108] inspect.getmembers passes exceptions from object's properties through

Karthikeyan Singaravelan report at bugs.python.org
Tue Oct 30 06:11:54 EDT 2018


Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

Sorry I misread your title stating it's about object getattr for a property has to execute the underlying code it seems as explained in https://stackoverflow.com/a/30143990/2610955 . I don't know if there is a way through which an attribute access in case of property can be verified without executing it. In case of catching the exception and returning the attributes that don't raise exception since it depends on the runtime execution of the property where the exception might occur at one point in time and doesn't occur in another point of time causing confusion during debugging.

----------

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


More information about the Python-bugs-list mailing list