I have a function that starts like this:
def apply_weighting(self, weighting):
"""
Available functions: {}
""".format(weightings)
What I want is for the docstring to print the dictionary of available weighting functions. But when inspecting the function it states that there are no docstring available:
In [69]: d.apply_weighting?
Type: instancemethod
String Form:<bound method DissectSpace.apply_weighting of <dissect.DissectSpace instance at 0x106b74dd0>>
File: [...]/dissect.py
Definition: d.apply_weighting(self, weighting)
Docstring: <no docstring>
How come? Is it not possible to format a docstring?