This time in the use of libev's python version of the event model, a total of only one file, there is no .py file to view the source code to view the interface, the beginning of the shell command to directly view the interface of the .so is not satisfactory. Then found that python provides a query interface in the code can be printed out directly to see.
First: dir()
For example, look at the functions of the module pyev
print dir(pyev)
Second: __dict__
Examples include functions to view the module pyev and to view Loop objects in pyev
print pyev.__dict__.items() print .__dict__
As you can see, dict is the best way to not only display the interface, but also to know the type of the interface.
Above this python view module,object function method is all I have shared with you, I hope to give you a reference, and I hope you support me more.