I have a class with help message, which should depends on input argument for __init__, e.g.:
class A:
'''
{}
'''
def __init__(self, x):
A.__doc__ = A.__doc__.format(x)
But when I run
x = A("xxxxx")
y = A("yyyyy")
help(x)
help(y)
I get the same messages for both help() calls:
Help on A in module __main__ object:
class A(builtins.object)
| xxxxx
|
:
Is there a way to create different documentation for different objects?