Skip to content

Commit 2c1d1eb

Browse files
committed
Added modules.py for listing the modules in math
1 parent 1c3e41e commit 2c1d1eb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pygorithm/math/modules.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import pkgutil
2+
3+
4+
def modules():
5+
"""
6+
Find all functions in pygorithm.data_structures
7+
"""
8+
import pygorithm.math
9+
package = pygorithm.math
10+
modules = []
11+
for importer, modname, ispkg in pkgutil.iter_modules(package.__path__):
12+
modules.append(modname)
13+
modules.remove('modules')
14+
modules.sort()
15+
return modules

0 commit comments

Comments
 (0)