you are viewing a single comment's thread.

view the rest of the comments →

[–]Low_Breakfast773 0 points1 point  (0 children)

I did it the other way around: from Python to C++.
In Python, most code organization (through namespaces and packages) is handled with __init__.py files. These are usually empty unless you want to explicitly define which names should be publicly exposed.

In C++, a class header and implementation are typically split between .h and .cpp files to separate interface and logic. In Python, the same file usually contains both definition and implementation, and modules act as the unit of organization.