Python comments starting with "#?"

Viewed 56

I have old and foreign code. In there I found comments like this

def foobar():
    #?This is the foobar function
    #?and it does fancy stuff.
    pass

Does anyone ever saw something like this? Maybe this syntax/convention belongs to a automatic docstring tool I don't know?

Or can it seriously be replaced by current conventions?

The point is that syntax violates PEP8. Because of that I need to correct that. But before that I would like to know if there is good reason behind it to write comments like this or if it maybe was just the authors own individual style.

0 Answers
Related