- Python modules export everything by default, unless you define
- In Python,
import foogives you a module object with all of foo’s exports. In JS, that’s written as
import * as foo from "./foo", and is a much less common thing to do.
Features across the two are pretty similar. There aren’t major distinctions, just minor feature differences.
Personally, I’m not really comfortable with the
public(foo=1) syntax, but the decorator syntax is handy.