The dir() method print the methods in alphabetical order. How can I keep the original order of the methods in my class?
Here’s my code
return [(m, getattr(PythonClass, m).__code__.co_varnames)
for m in dir(PythonClass)]
Thanks!
You need to sign in to view this answers
Leave feedback about this