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

2020-02-03 Thread Tom Augspurger
Change by Tom Augspurger : -- keywords: +patch pull_requests: +17703 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18330 ___ Python tracker ___

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

2020-02-01 Thread Richard Bruskiewich
Richard Bruskiewich added the comment: This "bug" is buzzing around my project head right now, interfering with the operation of the Python Fire CLI library when it attempts to interrogate the Python Pandas DataFrame using the inspect.getmembers() call. See

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

2018-11-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There are some relevant docs in the inspect module about properties triggering code execution and thus using getattr_static to fetch attributes. Ref : https://docs.python.org/3/library/inspect.html#fetching-attributes-statically . I tried the

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

2018-10-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan 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

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

2018-10-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. A simple reproducible in Python without splinter code. I think it happens for instances of the class where the attribute is a property raising exception and executing inspect.getmembers(Foo) works fine. # bpo35108.py import

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

2018-10-30 Thread Roman Inflianskas
New submission from Roman Inflianskas : I use inspect.getmembers for getting members of splinter.webdriver.BaseWebDriver. The problem is that it has a property status_code raises NotImplementedError: