Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

> 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.



Or a directory containing an __init__.py file inside,. describing which modules to import when the directory is imported.


That's a package, not a module.


In 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: