Skip to content

Imports & Namespaces

Code reusability is managed via import statements at the top of a file.

import path.to.package
import path.to.other as alias

When you import a package, you can access its contents using dot notation.

package.Component
package.subpackage.Function

You can use the CLI to debug namespace issues:

Terminal window
# Look up a specific identifier in a given scope
python vctx-cli.py resolve-symbol --ident counter --scope Blinky --package examples.blinky