Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's because modules and namespaces are the same thing in languages like Python, whereas they are separated in C++. The code in the imported module will go into whatever namespace it is in within that module, not the global namespace.


I had forgotten about C++ namespaces. It's been quite a while.

I'm not sure that this addresses my concern though. Do namespaces enable the import of specific symbols from a module?




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

Search: