matejcik @matejcik@octodon.social
Follow

Today I Learned
in Python, `import a.b` will place a `b` attribute on `a` ... in effect inserting a global variable into `a/__init__.py`

that's moderately surprising

· Web · 0 · 1