[issue38337] inspect: getmembers calls properties

2020-03-29 Thread Jonas Drotleff
Jonas Drotleff added the comment: I'm still thinking about this bug/issue/undefined behaviour. Today I wanted to test its behaviour with async: import inspect class Foo: def __init__(self, bar): self._bar = bar @property async def spam(self): print('C

[issue38337] inspect: getmembers calls properties

2020-01-27 Thread Jonas Drotleff
Jonas Drotleff added the comment: > Here is a link to the discussion of this on ideas Thank you for posting the link. I feel like I came to a dead end with this issue. As I am fairly new to CPython and have never contributed to this project before, I have no idea how to address this and

[issue38337] inspect: getmembers calls properties

2019-10-03 Thread Jonas Drotleff
Jonas Drotleff added the comment: Oh, yes I see what you mean. That's my fault, it seems like I copied the wrong line. Sorry. But the important piece is the 'var' attribute. Sorry for the confusion. -- ___ Python tracker <https

[issue38337] inspect: getmembers calls properties

2019-10-03 Thread Jonas Drotleff
Jonas Drotleff added the comment: > The results of this example are different from mine(version 3.7.4) I do not really see any difference. What do you mean? -- nosy: -Sanjay ___ Python tracker <https://bugs.python.org/issu

[issue38337] inspect: getmembers calls properties

2019-10-01 Thread Jonas Drotleff
Change by Jonas Drotleff : -- keywords: +patch pull_requests: +16113 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16521 ___ Python tracker <https://bugs.python.org/issu

[issue38337] inspect: getmembers calls properties

2019-10-01 Thread Jonas Drotleff
New submission from Jonas Drotleff : When calling inspect.getmembers on a class that has a property (@property), the property will be called by the getattr call in getmembers. Example: import inspect class Example: def __init__(self, var): self._var = var print('__i