[issue45356] Calling `help` executes @classmethod @property decorated methods
Randolf Scholz
report at bugs.python.org
Sun Oct 3 16:21:20 EDT 2021
Randolf Scholz <randolf.scholz at gmail.com> added the comment:
I updated the script with dome more info. The class-property gets actually executed 5 times when calling `help(MyClass)`
```
Computing class property of <class '__main__.MyClass'> ...DONE!
Computing class property of <class '__main__.MyClass'> ...DONE!
Computing class property of <class '__main__.MyClass'> ...DONE!
Computing class property of <class '__main__.MyBaseClass'> ...DONE!
Computing class property of <class '__main__.MyClass'> ...DONE!
```
----------
Added file: https://bugs.python.org/file50326/classmethod_property.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45356>
_______________________________________
More information about the Python-bugs-list
mailing list