So have this Python .pyd module (C++), so I can't just open it in a text editor to find out what it contains. So how can I? I just want to know the function names inside it.
Asked
Active
Viewed 2,911 times
1 Answers
12
Python have full reflection.
You can do the following (for a modulename.pyd)
python
>>> import modulename as mtmp
>>> dir(mtmp)
>>> help(mtmp)
EDIT : Add help command as propose by Mike Graham

ykatchou
- 3,667
- 1
- 22
- 27
-
(+1) Was about to suggest exactly the same thing. – NPE Sep 14 '11 at 14:38
-
1Note that `help` is more useful than `dir`. – Mike Graham Sep 14 '11 at 14:42