2 ms·
> Every other modern language seems to roughly map directory to module (go/python etc) [...]. C/C++ is the outlier, effectively using file as a module. Actuall
by dragonwriter 5y ago
> Every other modern language seems to roughly map directory to module (go/python etc) [...]. C/C++ is the outlier, effectively using file as a module.
Actually, no, Python uses files as modules.
- pjmlp 5y agoOr a directory containing an __init__.py file inside,. describing which modules to import when the directory is imported.
- dragonwriter 5y agoThat's a package, not a module.
- pjmlp 5y agoIn Python speak yes, in CS speak, it depends on which language we are talking about. I guess if you want to be pedantic in regards to Python, yes you're right.