It’s sometimes useful to do introspection on the module itself you are writing. But python doesn’t provide any direct way to support this. In fact a PEP about this feature has been rejected.
A little google find a solution to this problem. Here’s the code
1 2 3 4 5 6 7 |
|