How do I inspect the comments of a python instance variable?
class MyClass:
def __init__(self):
self.myVariable=0 # How can I inspect for this comment?
I've tried:
import inspect
inspect.getcomments(MyClass().myVariable) # does nothing
inspect.getdoc(MyClass().myVariable) # returns info about int type conversion
Any thoughts?