Hacker News new | ask | show | jobs
by yuushi 1892 days ago
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.
1 comments

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?