Thanks, but that's not really what I meant.
I would like it to highlight the arguments of the method INSIDE the method, so I can see what variables are given when you call the method.
So if you would call this particular method, you could do something like this:
- Code: Select all
self.onChatMessage(1, "text", 5, 6)
Then, def onChatMessage
would do something with that, but I would like to see which variables are given when the method is called: "self, playerId, text, channel, flags", like so:
.........command, parameter = self
= ["@" + command.lower()]
.........if parameter: text
, " ".join(text
This is not only for Python, by the way, but also very handy in Java, PHP and so on.